Skip to content

Commit

Permalink
Merge pull request #4321 from DFE-Digital/dependabot/bundler/rubocop-…
Browse files Browse the repository at this point in the history
…rails-2.25.1

Bump rubocop-rails from 2.25.0 to 2.25.1
  • Loading branch information
dcyoung-dev authored Jul 3, 2024
2 parents 5ec72d4 + 42d42f9 commit 04732b5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ GEM
rubocop (~> 1.41)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-rails (2.25.0)
rubocop-rails (2.25.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

class ChangeApplicationStartAndEndDateToNotNull < ActiveRecord::Migration[5.2]
def change
# rubocop:disable Rails/BulkChangeTable
change_column_null :recruitment_cycle, :application_start_date, false
change_column_null :recruitment_cycle, :application_end_date, false
# rubocop:enable Rails/BulkChangeTable
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ def up
pe.updated_by_user_id = some_id
pe.save!
end

# rubocop:disable Rails/BulkChangeTable
change_column_null :provider_enrichment, :updated_by_user_id, false
change_column_null :provider_enrichment, :created_by_user_id, false
# rubocop:enable Rails/BulkChangeTable
end

def down
# rubocop:disable Rails/BulkChangeTable
change_column_null :provider_enrichment, :updated_by_user_id, true
change_column_null :provider_enrichment, :created_by_user_id, true
# rubocop:enable Rails/BulkChangeTable
end
end
2 changes: 2 additions & 0 deletions db/migrate/20210317141543_add_not_null_to_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

class AddNotNullToUser < ActiveRecord::Migration[6.1]
def change
# rubocop:disable Rails/BulkChangeTable
change_column_null(:user, :first_name, false)
change_column_null(:user, :last_name, false)
# rubocop:enable Rails/BulkChangeTable
end
end

0 comments on commit 04732b5

Please sign in to comment.