Skip to content

Commit

Permalink
fixed another place
Browse files Browse the repository at this point in the history
  • Loading branch information
ollym authored Jan 4, 2024
1 parent 9db100b commit 04219f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/hair_trigger.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ namespace :db do
namespace :schema do
desc "Create a db/schema.rb file that can be portably used against any DB supported by AR"
task :dump => :environment do
next unless ActiveRecord::Base.schema_format == :ruby
format = ActiveRecord.respond_to?(:schema_format) ? ActiveRecord.schema_format : ActiveRecord::Base.schema_format
next unless format == :ruby

require 'active_record/schema_dumper'

Expand Down

0 comments on commit 04219f4

Please sign in to comment.