From 03bd6bedd346bb256f5649d2ac4fe5dcdfef5d55 Mon Sep 17 00:00:00 2001 From: schneems Date: Wed, 16 Sep 2015 11:46:10 -0500 Subject: 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. --- activerecord/lib/active_record/schema_dumper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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 -- cgit v1.2.3