aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2015-09-16 11:46:10 -0500
committerschneems <richard.schneeman@gmail.com>2015-09-16 11:46:10 -0500
commit03bd6bedd346bb256f5649d2ac4fe5dcdfef5d55 (patch)
tree7a185d3e3d57274fb2955c6a44a205a877c366d9 /activerecord/lib/active_record/schema_dumper.rb
parent752432e82f3032e96ba609b65437cd8e8b8d3939 (diff)
downloadrails-03bd6bedd346bb256f5649d2ac4fe5dcdfef5d55.tar.gz
rails-03bd6bedd346bb256f5649d2ac4fe5dcdfef5d55.tar.bz2
rails-03bd6bedd346bb256f5649d2ac4fe5dcdfef5d55.zip
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.
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb
index c5910fa1ad..fd48ea402a 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -247,7 +247,7 @@ HEADER
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