aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/014_create_post_redirects.rb15
-rw-r--r--db/schema.rb10
2 files changed, 24 insertions, 1 deletions
diff --git a/db/migrate/014_create_post_redirects.rb b/db/migrate/014_create_post_redirects.rb
new file mode 100644
index 000000000..26c561dac
--- /dev/null
+++ b/db/migrate/014_create_post_redirects.rb
@@ -0,0 +1,15 @@
+class CreatePostRedirects < ActiveRecord::Migration
+ def self.up
+ create_table :post_redirects do |t|
+ t.column :token, :text
+ t.column :uri, :text
+ t.column :post_params_yaml, :text
+ t.column :created_at, :datetime
+ t.column :updated_at, :datetime
+ end
+ end
+
+ def self.down
+ drop_table :post_redirects
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 8350f3943..1f0181d25 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 => 13) do
+ActiveRecord::Schema.define(:version => 14) do
create_table "incoming_messages", :force => true do |t|
t.column "info_request_id", :integer
@@ -29,6 +29,14 @@ ActiveRecord::Schema.define(:version => 13) do
t.column "sent_at", :datetime
end
+ create_table "post_redirects", :force => true do |t|
+ t.column "token", :text
+ t.column "uri", :text
+ t.column "post_params_yaml", :text
+ t.column "created_at", :datetime
+ t.column "updated_at", :datetime
+ end
+
create_table "public_bodies", :force => true do |t|
t.column "name", :text
t.column "short_name", :text