diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/055_stop_new_responses.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/055_stop_new_responses.rb b/db/migrate/055_stop_new_responses.rb new file mode 100644 index 000000000..9c9e7ad9f --- /dev/null +++ b/db/migrate/055_stop_new_responses.rb @@ -0,0 +1,9 @@ +class StopNewResponses < ActiveRecord::Migration + def self.up + add_column :info_requests, :stop_new_responses, :boolean, :default => false, :null => false + end + + def self.down + remove :info_requests, :stop_new_responses + end +end diff --git a/db/schema.rb b/db/schema.rb index 254607810..4004371b8 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 => 54) do +ActiveRecord::Schema.define(:version => 55) do create_table "acts_as_xapian_jobs", :force => true do |t| t.string "model", :null => false @@ -48,6 +48,7 @@ ActiveRecord::Schema.define(:version => 54) do t.boolean "awaiting_description", :default => false, :null => false t.string "prominence", :default => "normal", :null => false t.text "url_title", :null => false + t.boolean "stop_new_responses", :default => false, :null => false end add_index "info_requests", ["created_at"], :name => "index_info_requests_on_created_at" |