Skip to content

Commit 2bfd435

Browse files
committed
Rails 7.1 amendments
1 parent 9e2e4c6 commit 2bfd435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/models/group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Group < ApplicationRecord
1313

1414
validates :name, presence: true, inclusion: { in: NAMES, message: 'Invalid name for Group' }
1515

16-
alias_attribute :city, :chapter
16+
alias city chapter
1717

1818
default_scope -> { joins(:chapter).includes(:chapter) }
1919

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def self.branch_coverage?
3535

3636
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
3737

38-
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
38+
ActiveRecord::Migration.check_all_pending! if defined?(ActiveRecord::Migration)
3939

4040
RSpec.configure do |config|
4141
config.include ApplicationHelper

0 commit comments

Comments
 (0)