diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-12 15:47:28 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-12 15:47:28 +0400 |
commit | f1ecf53c1e55fbbc66cb2d7d12fb411cbfc2ace8 (patch) | |
tree | 2954222eb0f8ab30df95d04ce2272d72718f31e3 /db/migrate/20131112114325_create_broadcast_messages.rb | |
parent | 0a08c775193af3ee566700017d85517b7f9829cd (diff) |
Broadcast message model + migrations
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate/20131112114325_create_broadcast_messages.rb')
-rw-r--r-- | db/migrate/20131112114325_create_broadcast_messages.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20131112114325_create_broadcast_messages.rb b/db/migrate/20131112114325_create_broadcast_messages.rb new file mode 100644 index 00000000000..147178e9dcf --- /dev/null +++ b/db/migrate/20131112114325_create_broadcast_messages.rb @@ -0,0 +1,12 @@ +class CreateBroadcastMessages < ActiveRecord::Migration + def change + create_table :broadcast_messages do |t| + t.text :message, null: false + t.datetime :starts_at + t.datetime :ends_at + t.integer :alert_type + + t.timestamps + end + end +end |