Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristaps Kulikovskis committed Sep 26, 2017
1 parent ef1552d commit 945e814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 = defined?(::Rails) && ::Rails::VERSION::MAJOR >= 4 ? ::ActiveRecord::SchemaMigration.table_name : ::ActiveRecord::Migrator.schema_migrations_table_name

tables.reject do |t|
(t == migrations_table) ||
Expand Down
2 changes: 1 addition & 1 deletion lib/database_flusher/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module DatabaseFlusher
VERSION = '0.3.3'.freeze
VERSION = '0.3.4'.freeze
end

0 comments on commit 945e814

Please sign in to comment.