summaryrefslogtreecommitdiff
path: root/db/migrate/20190514105711_create_ip_restriction.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190514105711_create_ip_restriction.rb')
-rw-r--r--db/migrate/20190514105711_create_ip_restriction.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20190514105711_create_ip_restriction.rb b/db/migrate/20190514105711_create_ip_restriction.rb
deleted file mode 100644
index 51e711ca32b..00000000000
--- a/db/migrate/20190514105711_create_ip_restriction.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class CreateIpRestriction < ActiveRecord::Migration[5.1]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- def change
- create_table :ip_restrictions do |t|
- t.references :group, references: :namespace,
- column: :group_id,
- type: :integer,
- null: false,
- index: true
- t.string :range, null: false # rubocop:disable Migration/PreventStrings
- end
-
- add_foreign_key(:ip_restrictions, :namespaces, column: :group_id, on_delete: :cascade) # rubocop: disable Migration/AddConcurrentForeignKey
- end
-end