aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/023_outgoing_message_last_sent_at.rb9
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/023_outgoing_message_last_sent_at.rb b/db/migrate/023_outgoing_message_last_sent_at.rb
new file mode 100644
index 000000000..24cb55257
--- /dev/null
+++ b/db/migrate/023_outgoing_message_last_sent_at.rb
@@ -0,0 +1,9 @@
+class OutgoingMessageLastSentAt < ActiveRecord::Migration
+ def self.up
+ rename_column(:outgoing_messages, :sent_at, :last_sent_at)
+ end
+
+ def self.down
+ rename_column(:outgoing_messages, :last_sent_at, :sent_at)
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index f2032fdc5..38257f742 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 => 22) do
+ActiveRecord::Schema.define(:version => 23) do
create_table "incoming_messages", :force => true do |t|
t.column "info_request_id", :integer
@@ -35,7 +35,7 @@ ActiveRecord::Schema.define(:version => 22) do
t.column "message_type", :string
t.column "created_at", :datetime
t.column "updated_at", :datetime
- t.column "sent_at", :datetime
+ t.column "last_sent_at", :datetime
end
create_table "post_redirects", :force => true do |t|