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:
Diffstat (limited to 'db/migrate/20201027101010_create_user_follow_users.rb')
-rw-r--r--db/migrate/20201027101010_create_user_follow_users.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/db/migrate/20201027101010_create_user_follow_users.rb b/db/migrate/20201027101010_create_user_follow_users.rb
deleted file mode 100644
index 7c1f831f3b2..00000000000
--- a/db/migrate/20201027101010_create_user_follow_users.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-class CreateUserFollowUsers < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- def up
- with_lock_retries do
- execute <<~SQL
- CREATE TABLE user_follow_users (
- follower_id integer not null references users (id) on delete cascade,
- followee_id integer not null references users (id) on delete cascade,
- PRIMARY KEY (follower_id, followee_id)
- );
- CREATE INDEX ON user_follow_users (followee_id);
- SQL
- end
- end
-
- def down
- drop_table :user_follow_users
- end
-end