diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20131112114325_create_broadcast_messages.rb | 12 | ||||
-rw-r--r-- | db/schema.rb | 11 |
2 files changed, 22 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index 88c6a545d96..a03e4713188 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,16 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20131106151520) do +ActiveRecord::Schema.define(:version => 20131112114325) do + + create_table "broadcast_messages", :force => true do |t| + t.text "message", :null => false + t.datetime "starts_at" + t.datetime "ends_at" + t.integer "alert_type" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end create_table "deploy_keys_projects", :force => true do |t| t.integer "deploy_key_id", :null => false |