aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-21 14:04:29 +0000
committerfrancis <francis>2008-03-21 14:04:29 +0000
commit426be7f2c0eb5cf09bb35bb9d40c67b7af59d7ec (patch)
treeb56287fef663664cfdabbe9d17a6acc41eeb3396 /db
parent6c7353d8b494c2b5c83d725be68fba6b5b5c517d (diff)
Get rid of special envelope from -bounce addresses, as they are no good since
enough public authorities mail them with non-automatic messages.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/044_remove_is_bounce.rb9
-rw-r--r--db/schema.rb11
2 files changed, 14 insertions, 6 deletions
diff --git a/db/migrate/044_remove_is_bounce.rb b/db/migrate/044_remove_is_bounce.rb
new file mode 100644
index 000000000..8e2307060
--- /dev/null
+++ b/db/migrate/044_remove_is_bounce.rb
@@ -0,0 +1,9 @@
+class RemoveIsBounce < ActiveRecord::Migration
+ def self.up
+ remove_column :incoming_messages, :is_bounce
+ end
+
+ def self.down
+ add_column :incoming_messages, :is_bounce, :boolean, :default => false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 5bcb2470e..2f304ddc7 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,14 +9,13 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 43) do
+ActiveRecord::Schema.define(:version => 44) do
create_table "incoming_messages", :force => true do |t|
- t.integer "info_request_id", :null => false
- t.text "raw_data", :null => false
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.boolean "is_bounce", :default => false, :null => false
+ t.integer "info_request_id", :null => false
+ t.text "raw_data", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
create_table "info_request_events", :force => true do |t|