aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/021_remove_contains_information_default.rb9
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/021_remove_contains_information_default.rb b/db/migrate/021_remove_contains_information_default.rb
new file mode 100644
index 000000000..a27b53193
--- /dev/null
+++ b/db/migrate/021_remove_contains_information_default.rb
@@ -0,0 +1,9 @@
+class RemoveContainsInformationDefault < ActiveRecord::Migration
+ def self.up
+ change_column :incoming_messages, :contains_information, :boolean, :default => nil
+ end
+
+ def self.down
+ change_column :incoming_messages, :contains_information, :boolean, :default => false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 8c5fb8ef6..b8fbac966 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 => 20) do
+ActiveRecord::Schema.define(:version => 21) do
create_table "incoming_messages", :force => true do |t|
t.column "info_request_id", :integer
@@ -10,7 +10,7 @@ ActiveRecord::Schema.define(:version => 20) do
t.column "created_at", :datetime
t.column "updated_at", :datetime
t.column "user_classified", :boolean, :default => false
- t.column "contains_information", :boolean, :default => false
+ t.column "contains_information", :boolean
end
create_table "info_requests", :force => true do |t|