提交 03bd6bed 编写于 作者: S schneems

Don't hardcode table name

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.
上级 752432e8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册