diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/010_remove_public_body_id_from_outgoing_messages.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 10 insertions, 2 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 |