fix-migration-rubocop-offenses.diff

Paolo Lim, 2020-10-13 10:18

Download (2.41 KB)

View differences:

test/system/issues_test.rb
441 441
      click_link 'Copy'
442 442
    end
443 443
    assert_current_path '/issues/bulk_edit', :ignore_query => true
444
    submit_buttons = page.all('input[type=submit]')
445
    assert_equal 'Copy', submit_buttons[0].value
444 446

  
445 447
    page.find('#issue_project_id').select('OnlineStore')
446 448
    # wait for ajax response
447
- 
db/migrate/20190510070108_add_unique_id_to_import_items.rb
1 1
class AddUniqueIdToImportItems < ActiveRecord::Migration[5.2]
2 2
  def change
3
    change_table :import_items do |t|
3
    change_table :import_items, bulk: true do |t|
4 4
      t.string "unique_id"
5 5
      t.index ["import_id", "unique_id"]
6 6
    end
db/migrate/20200826153402_add_totp_to_user.rb
1 1
class AddTotpToUser < ActiveRecord::Migration[5.2]
2 2
  def change
3
    add_column :users, :twofa_totp_key, :string
4
    add_column :users, :twofa_totp_last_used_at, :integer
3
    change_table :users, bulk: true do |t|
4
      t.string :twofa_totp_key
5
      t.integer :twofa_totp_last_used_at
6
    end
5 7
  end
6 8
end
7
-