Skip to content

Commit

Permalink
Fix rails class lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristaps Kulikovskis committed Sep 26, 2017
1 parent db7bb76 commit ef1552d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database_flusher/active_record/deletion_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def adapter
def all_tables
# NOTE connection.tables warns on AR 5 with some adapters
tables = ActiveSupport::Deprecation.silence { connection.tables }
migrations_table = Rails::VERSION::MAJOR >= 4 ? ::ActiveRecord::SchemaMigration.table_name : ::ActiveRecord::Migrator.schema_migrations_table_name
migrations_table = ::Rails::VERSION::MAJOR >= 4 ? ::ActiveRecord::SchemaMigration.table_name : ::ActiveRecord::Migrator.schema_migrations_table_name

tables.reject do |t|
(t == migrations_table) ||
Expand Down

0 comments on commit ef1552d

Please sign in to comment.