Skip to content

Commit

Permalink
Merge pull request #4 from LeKristapino/schema_migrations_table_name_…
Browse files Browse the repository at this point in the history
…deprication

Remove AR deprecation warning
  • Loading branch information
ebeigarts authored Sep 27, 2017
2 parents 295d756 + 0c5e31e commit f14edb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/database_flusher/active_record/deletion_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def all_tables
# NOTE connection.tables warns on AR 5 with some adapters
tables = ActiveSupport::Deprecation.silence { connection.tables }
tables.reject do |t|
(t == ::ActiveRecord::Migrator.schema_migrations_table_name) ||
(::ActiveRecord::Base.respond_to?(:internal_metadata_table_name) &&
(t == ::ActiveRecord::SchemaMigration.table_name) ||
(::ActiveRecord::Base.respond_to?(:internal_metadata_table_name) &&
(t == ::ActiveRecord::Base.internal_metadata_table_name))
end
end
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 f14edb1

Please sign in to comment.