aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/025_add_followup_to_outgoing_message.rb9
-rw-r--r--db/schema.rb17
2 files changed, 18 insertions, 8 deletions
diff --git a/db/migrate/025_add_followup_to_outgoing_message.rb b/db/migrate/025_add_followup_to_outgoing_message.rb
new file mode 100644
index 000000000..10fc7adcb
--- /dev/null
+++ b/db/migrate/025_add_followup_to_outgoing_message.rb
@@ -0,0 +1,9 @@
+class AddFollowupToOutgoingMessage < ActiveRecord::Migration
+ def self.up
+ add_column :outgoing_messages, :incoming_message_followup_id, :integer
+ end
+
+ def self.down
+ drop_column :outgoing_messages, :incoming_message_followup_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 30c9570ec..3632942d1 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 => 24) do
+ActiveRecord::Schema.define(:version => 25) do
create_table "incoming_messages", :force => true do |t|
t.column "info_request_id", :integer
@@ -30,13 +30,14 @@ ActiveRecord::Schema.define(:version => 24) do
end
create_table "outgoing_messages", :force => true do |t|
- t.column "info_request_id", :integer
- t.column "body", :text
- t.column "status", :string
- t.column "message_type", :string
- t.column "created_at", :datetime
- t.column "updated_at", :datetime
- t.column "last_sent_at", :datetime
+ t.column "info_request_id", :integer
+ t.column "body", :text
+ t.column "status", :string
+ t.column "message_type", :string
+ t.column "created_at", :datetime
+ t.column "updated_at", :datetime
+ t.column "last_sent_at", :datetime
+ t.column "incoming_message_followup_id", :integer
end
create_table "post_redirects", :force => true do |t|