summaryrefslogtreecommitdiff
path: root/db/migrate/20161113184239_create_user_chat_names_table.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-16 14:56:30 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-16 14:56:30 +0100
commitd64183e1fa26ab77107e3a2a20be1fe4df3a1875 (patch)
tree00d7b51545c116ce67bb857fd1003ea381250584 /db/migrate/20161113184239_create_user_chat_names_table.rb
parentc60437786bfe43344b4a5eb040437f73f37c6396 (diff)
downloadgitlab-ce-d64183e1fa26ab77107e3a2a20be1fe4df3a1875.tar.gz
Add most of specs for chat names
Diffstat (limited to 'db/migrate/20161113184239_create_user_chat_names_table.rb')
-rw-r--r--db/migrate/20161113184239_create_user_chat_names_table.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/db/migrate/20161113184239_create_user_chat_names_table.rb b/db/migrate/20161113184239_create_user_chat_names_table.rb
index f9ab2adf2a9..1e138fba202 100644
--- a/db/migrate/20161113184239_create_user_chat_names_table.rb
+++ b/db/migrate/20161113184239_create_user_chat_names_table.rb
@@ -5,13 +5,14 @@ class CreateUserChatNamesTable < ActiveRecord::Migration
def change
create_table :chat_names do |t|
- t.integer "user_id", null: false
- t.integer "service_id", null: false
- t.string "team_id"
- t.string "team_domain"
- t.string "chat_id"
- t.string "chat_name"
- t.timestamps
+ t.integer :user_id, null: false
+ t.integer :service_id, null: false
+ t.string :team_id, null: false
+ t.string :team_domain
+ t.string :chat_id, null: false
+ t.string :chat_name
+ t.datetime :used_at
+ t.timestamps null: false
end
add_index :chat_names, [:user_id, :service_id], unique: true