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
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-02-02 17:04:02 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-02-16 11:17:40 +0300
commit297dc70158f905fef4557d1ee6510bcf459a08a9 (patch)
treeb35fa5508d947f1d19e644ac9b1149145f9bb45a /db/migrate/20170120131253_create_chat_teams.rb
parente90ec73f651ca6153a72437d4dd01f60c38839da (diff)
Create MM team for GitLab group
Diffstat (limited to 'db/migrate/20170120131253_create_chat_teams.rb')
-rw-r--r--db/migrate/20170120131253_create_chat_teams.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20170120131253_create_chat_teams.rb b/db/migrate/20170120131253_create_chat_teams.rb
new file mode 100644
index 00000000000..6476c239152
--- /dev/null
+++ b/db/migrate/20170120131253_create_chat_teams.rb
@@ -0,0 +1,17 @@
+class CreateChatTeams < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ create_table :chat_teams do |t|
+ t.integer :namespace_id, index: true
+ t.string :team_id
+ t.string :name
+
+ t.timestamps null: false
+ end
+
+ add_foreign_key :chat_teams, :namespaces, on_delete: :cascade
+ end
+end