Skip to content

Commit

Permalink
fix testing against rails 6.1
Browse files Browse the repository at this point in the history
ignore rails 8 testing, probably devise is not ready
  • Loading branch information
scambra committed Oct 16, 2024
1 parent 3757780 commit b189979
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
orm: mongoid
- rails: main
orm: mongoid
- rails: main # many errors, probably devise issues
orm: active_record

runs-on: 'ubuntu-latest'

Expand Down
13 changes: 10 additions & 3 deletions test/orm/active_record.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new(nil)

ActiveRecord::MigrationContext.new(
File.expand_path('../../rails_app/db/migrate/', __FILE__)
).migrate
if ActiveRecord::VERSION >= 7
ActiveRecord::MigrationContext.new(
File.expand_path('../../rails_app/db/migrate/', __FILE__)
).migrate
else # rails 6
ActiveRecord::MigrationContext.new(
File.expand_path('../../rails_app/db/migrate/', __FILE__),
ActiveRecord::Base.connection.schema_migration
).migrate
end

0 comments on commit b189979

Please sign in to comment.