Commit f1ecf53c1e55fbbc66cb2d7d12fb411cbfc2ace8
1 parent
0a08c775
Exists in
master
and in
4 other branches
Broadcast message model + migrations
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
5 changed files
with
44 additions
and
1 deletions
Show diff stats
... | ... | @@ -0,0 +1,12 @@ |
1 | +class CreateBroadcastMessages < ActiveRecord::Migration | |
2 | + def change | |
3 | + create_table :broadcast_messages do |t| | |
4 | + t.text :message, null: false | |
5 | + t.datetime :starts_at | |
6 | + t.datetime :ends_at | |
7 | + t.integer :alert_type | |
8 | + | |
9 | + t.timestamps | |
10 | + end | |
11 | + end | |
12 | +end | ... | ... |
db/schema.rb
... | ... | @@ -11,7 +11,16 @@ |
11 | 11 | # |
12 | 12 | # It's strongly recommended to check this file into your version control system. |
13 | 13 | |
14 | -ActiveRecord::Schema.define(:version => 20131106151520) do | |
14 | +ActiveRecord::Schema.define(:version => 20131112114325) do | |
15 | + | |
16 | + create_table "broadcast_messages", :force => true do |t| | |
17 | + t.text "message", :null => false | |
18 | + t.datetime "starts_at" | |
19 | + t.datetime "ends_at" | |
20 | + t.integer "alert_type" | |
21 | + t.datetime "created_at", :null => false | |
22 | + t.datetime "updated_at", :null => false | |
23 | + end | |
15 | 24 | |
16 | 25 | create_table "deploy_keys_projects", :force => true do |t| |
17 | 26 | t.integer "deploy_key_id", :null => false | ... | ... |