diff options
Diffstat (limited to 'db/migrate/20181128123704_add_state_to_pool_repository.rb')
-rw-r--r-- | db/migrate/20181128123704_add_state_to_pool_repository.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/db/migrate/20181128123704_add_state_to_pool_repository.rb b/db/migrate/20181128123704_add_state_to_pool_repository.rb index 04bbcf24f62..4d4e56390df 100644 --- a/db/migrate/20181128123704_add_state_to_pool_repository.rb +++ b/db/migrate/20181128123704_add_state_to_pool_repository.rb @@ -7,13 +7,17 @@ class AddStateToPoolRepository < ActiveRecord::Migration[5.0] # Given the table is empty, and the non concurrent methods are chosen so # the transactions don't have to be disabled - # rubocop: disable Migration/AddConcurrentForeignKey, Migration/AddIndex + # rubocop:disable Migration/AddConcurrentForeignKey + # rubocop:disable Migration/AddIndex + # rubocop:disable Migration/PreventStrings def change - add_column(:pool_repositories, :state, :string, null: true) # rubocop:disable Migration/AddLimitToStringColumns + add_column(:pool_repositories, :state, :string, null: true) add_column :pool_repositories, :source_project_id, :integer add_index :pool_repositories, :source_project_id, unique: true add_foreign_key :pool_repositories, :projects, column: :source_project_id, on_delete: :nullify end - # rubocop: enable Migration/AddConcurrentForeignKey, Migration/AddIndex + # rubocop:enable Migration/PreventStrings + # rubocop:enable Migration/AddIndex + # rubocop:enable Migration/AddConcurrentForeignKey end |