aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/015_add_email_token_to_post_redirects.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/015_add_email_token_to_post_redirects.rb b/db/migrate/015_add_email_token_to_post_redirects.rb
new file mode 100644
index 000000000..47d070533
--- /dev/null
+++ b/db/migrate/015_add_email_token_to_post_redirects.rb
@@ -0,0 +1,9 @@
+class AddEmailTokenToPostRedirects < ActiveRecord::Migration
+ def self.up
+ add_column :post_redirects, :email_token, :text
+ end
+
+ def self.down
+ remove_column :post_redirects, :email_token
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 1f0181d25..dce64b418 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 => 14) do
+ActiveRecord::Schema.define(:version => 15) do
create_table "incoming_messages", :force => true do |t|
t.column "info_request_id", :integer
@@ -35,6 +35,7 @@ ActiveRecord::Schema.define(:version => 14) do
t.column "post_params_yaml", :text
t.column "created_at", :datetime
t.column "updated_at", :datetime
+ t.column "email_token", :text
end
create_table "public_bodies", :force => true do |t|