aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/010_remove_public_body_id_from_outgoing_messages.rb9
-rw-r--r--db/schema.rb3
-rw-r--r--todo.txt5
3 files changed, 14 insertions, 3 deletions
diff --git a/db/migrate/010_remove_public_body_id_from_outgoing_messages.rb b/db/migrate/010_remove_public_body_id_from_outgoing_messages.rb
new file mode 100644
index 000000000..d39cb4e70
--- /dev/null
+++ b/db/migrate/010_remove_public_body_id_from_outgoing_messages.rb
@@ -0,0 +1,9 @@
+class RemovePublicBodyIdFromOutgoingMessages < ActiveRecord::Migration
+ def self.up
+ remove_column :outgoing_messages, :public_body_id
+ end
+
+ def self.down
+ add_column :ourgoing_messages, :public_body_id, :integer
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index a0e867be9..e3fdbce13 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -2,7 +2,7 @@
# migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.
-ActiveRecord::Schema.define(:version => 9) do
+ActiveRecord::Schema.define(:version => 10) do
create_table "info_requests", :force => true do |t|
t.column "title", :text
@@ -14,7 +14,6 @@ ActiveRecord::Schema.define(:version => 9) do
t.column "info_request_id", :integer
t.column "body", :text
t.column "status", :string
- t.column "public_body_id", :integer
t.column "message_type", :string
t.column "created_at", :datetime
t.column "updated_at", :datetime
diff --git a/todo.txt b/todo.txt
index d58bffdb1..b58771c04 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,6 +1,5 @@
Give a better login dialog
-public_body_id not set in outgoing_message (maybe not needed)
Check validation for saving info request / outgoing message pair works with transactions fine
Tidy up error message text (like "body must be filled in" on info request form)
Add created_at / updated_at to every model that might need it
@@ -19,4 +18,8 @@ Rename "file_request" controller to "new" ?
Add SQL foreign keys to database schema
Call "delete from sessions where now() - updated_at > 3600" (one hour) or whatever
+Later
+=====
+
+Add spelling checker as in WTT