aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/013_create_incoming_messages.rb14
-rw-r--r--db/schema.rb9
2 files changed, 22 insertions, 1 deletions
diff --git a/db/migrate/013_create_incoming_messages.rb b/db/migrate/013_create_incoming_messages.rb
new file mode 100644
index 000000000..c747fcb8c
--- /dev/null
+++ b/db/migrate/013_create_incoming_messages.rb
@@ -0,0 +1,14 @@
+class CreateIncomingMessages < ActiveRecord::Migration
+ def self.up
+ create_table :incoming_messages do |t|
+ t.column :info_request_id, :integer
+ t.column :raw_data, :text
+ t.column :created_at, :datetime
+ t.column :updated_at, :datetime
+ end
+ end
+
+ def self.down
+ drop_table :incoming_messages
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 2a8a7978b..8350f3943 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -2,7 +2,14 @@
# migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.
-ActiveRecord::Schema.define(:version => 12) do
+ActiveRecord::Schema.define(:version => 13) do
+
+ create_table "incoming_messages", :force => true do |t|
+ t.column "info_request_id", :integer
+ t.column "raw_data", :text
+ t.column "created_at", :datetime
+ t.column "updated_at", :datetime
+ end
create_table "info_requests", :force => true do |t|
t.column "title", :text