Skip to content

Commit

Permalink
Don't hardcode table name
Browse files Browse the repository at this point in the history
The schema_migrations table name is configurable. We should use this value when checking for ignored table names when dumping schema instead of a hardcoded value.
  • Loading branch information
schneems committed Sep 16, 2015
1 parent 752432e commit 03bd6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/schema_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def remove_prefix_and_suffix(table)
end

def ignored?(table_name)
['schema_migrations', ignore_tables].flatten.any? do |ignored|
[ActiveRecord::Base.schema_migrations_table_name, ignore_tables].flatten.any? do |ignored|
ignored === remove_prefix_and_suffix(table_name)
end
end
Expand Down

0 comments on commit 03bd6be

Please sign in to comment.