aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/043_remove_complaint_email.rb12
-rw-r--r--db/schema.rb4
2 files changed, 13 insertions, 3 deletions
diff --git a/db/migrate/043_remove_complaint_email.rb b/db/migrate/043_remove_complaint_email.rb
new file mode 100644
index 000000000..cc03f6507
--- /dev/null
+++ b/db/migrate/043_remove_complaint_email.rb
@@ -0,0 +1,12 @@
+class RemoveComplaintEmail < ActiveRecord::Migration
+ def self.up
+ remove_column :public_body_versions, :complaint_email
+ remove_column :public_bodies, :complaint_email
+ end
+
+ def self.down
+ add_column :public_bodies, :complaint_email, :text
+ add_column :public_body_versions, :complaint_email, :text
+ end
+end
+
diff --git a/db/schema.rb b/db/schema.rb
index 00c77b946..5bcb2470e 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 42) do
+ActiveRecord::Schema.define(:version => 43) do
create_table "incoming_messages", :force => true do |t|
t.integer "info_request_id", :null => false
@@ -75,7 +75,6 @@ ActiveRecord::Schema.define(:version => 42) do
t.text "name", :null => false
t.text "short_name", :null => false
t.text "request_email", :null => false
- t.text "complaint_email"
t.integer "version", :null => false
t.string "last_edit_editor", :null => false
t.text "last_edit_comment", :null => false
@@ -100,7 +99,6 @@ ActiveRecord::Schema.define(:version => 42) do
t.text "name"
t.text "short_name"
t.text "request_email"
- t.text "complaint_email"
t.datetime "updated_at"
t.string "last_edit_editor"
t.string "last_edit_comment"