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:
authorMatija Čupić <matteeyah@gmail.com>2018-02-03 00:51:03 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-02-03 00:51:03 +0300
commit648826721f13ee4309a11638e538d96006648b39 (patch)
tree9e2cb1b728208671c4d653d32223a02d19f3fe82 /db/migrate
parent838cc0907c963a025553d639283b3bbf8140dae8 (diff)
Rename Callout to UserCallout
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180125214301_create_user_callouts.rb (renamed from db/migrate/20180125214301_create_callouts.rb)6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/20180125214301_create_callouts.rb b/db/migrate/20180125214301_create_user_callouts.rb
index bce3d808efd..945f4181274 100644
--- a/db/migrate/20180125214301_create_callouts.rb
+++ b/db/migrate/20180125214301_create_user_callouts.rb
@@ -1,16 +1,16 @@
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
-class CreateCallouts < ActiveRecord::Migration
+class CreateUserCallouts < ActiveRecord::Migration
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
def change
- create_table :callouts do |t|
+ create_table :user_callouts do |t|
t.string :feature_name, null: false
t.references :user, index: true, foreign_key: { on_delete: :cascade }, null: false
end
- add_index :callouts, [:user_id, :feature_name], unique: true
+ add_index :user_callouts, [:user_id, :feature_name], unique: true
end
end