Skip to content

Commit

Permalink
ActiveRecord::SchemaMigration for db migration
Browse files Browse the repository at this point in the history
  • Loading branch information
RajRoR committed Sep 17, 2024
1 parent ddc7e40 commit 4072958
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/orm/active_record.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new(nil)

ActiveRecord::MigrationContext.new("../../dummy/db/migrate").migrate
ActiveRecord::MigrationContext.new(
[File.expand_path("../../dummy/db/migrate/", __FILE__)],
ActiveRecord::SchemaMigration
).up

0 comments on commit 4072958

Please sign in to comment.