Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 15:47:28 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 15:47:28 +0400
commitf1ecf53c1e55fbbc66cb2d7d12fb411cbfc2ace8 (patch)
tree2954222eb0f8ab30df95d04ce2272d72718f31e3 /db
parent0a08c775193af3ee566700017d85517b7f9829cd (diff)
Broadcast message model + migrations
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20131112114325_create_broadcast_messages.rb12
-rw-r--r--db/schema.rb11
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