summaryrefslogtreecommitdiff
path: root/db/migrate/20190723153247_create_allowed_email_domains_for_groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190723153247_create_allowed_email_domains_for_groups.rb')
-rw-r--r--db/migrate/20190723153247_create_allowed_email_domains_for_groups.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/db/migrate/20190723153247_create_allowed_email_domains_for_groups.rb b/db/migrate/20190723153247_create_allowed_email_domains_for_groups.rb
deleted file mode 100644
index 71af7434f9d..00000000000
--- a/db/migrate/20190723153247_create_allowed_email_domains_for_groups.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class CreateAllowedEmailDomainsForGroups < ActiveRecord::Migration[5.2]
- # Set this constant to true if this migration requires downtime.
- DOWNTIME = false
-
- def change
- create_table :allowed_email_domains do |t|
- t.timestamps_with_timezone null: false
- t.references :group, references: :namespace,
- column: :group_id,
- type: :integer,
- null: false,
- index: true
- t.foreign_key :namespaces, column: :group_id, on_delete: :cascade
- t.string :domain, null: false, limit: 255 # rubocop:disable Migration/PreventStrings
- end
- end
-end