diff options
Diffstat (limited to 'db/migrate/20180214093516_create_badges.rb')
-rw-r--r-- | db/migrate/20180214093516_create_badges.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/migrate/20180214093516_create_badges.rb b/db/migrate/20180214093516_create_badges.rb index fe27d465571..7a0d82d2d81 100644 --- a/db/migrate/20180214093516_create_badges.rb +++ b/db/migrate/20180214093516_create_badges.rb @@ -1,8 +1,8 @@ class CreateBadges < ActiveRecord::Migration[4.2] DOWNTIME = false + # rubocop:disable Migration/PreventStrings def change - # rubocop:disable Migration/AddLimitToStringColumns create_table :badges do |t| t.string :link_url, null: false t.string :image_url, null: false @@ -12,9 +12,10 @@ class CreateBadges < ActiveRecord::Migration[4.2] t.timestamps_with_timezone null: false end - # rubocop:enable Migration/AddLimitToStringColumns # rubocop:disable Migration/AddConcurrentForeignKey add_foreign_key :badges, :namespaces, column: :group_id, on_delete: :cascade + # rubocop:enable Migration/AddConcurrentForeignKey end + # rubocop:enable Migration/PreventStrings end |