Skip to content

Commit

Permalink
Fix for Rails 7.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ollym authored Jan 4, 2024
1 parent 1d6be97 commit 9db100b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/hair_trigger.rake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace :db do

# code adopted from activerecord/lib/active_record/tasks/database_tasks.rb#L441
def dump_filename(db_config_name)
format = ActiveRecord::Base.schema_format
format = ActiveRecord.respond_to?(:schema_format) ? ActiveRecord.schema_format : ActiveRecord::Base.schema_format
filename = if ActiveRecord::Base.configurations.primary?(db_config_name)
schema_file_type(format)
else
Expand Down

0 comments on commit 9db100b

Please sign in to comment.