diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2015-09-16 12:26:11 -0500 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2015-09-16 12:26:11 -0500 |
commit | ee0ca345d9d7d4d86d7da83d101421c8fa0ae3f3 (patch) | |
tree | dc4b47adbc7b8f42d2d4d574a56159533294a369 /activerecord | |
parent | 4d77e02d344349e899d6c4c5e10b1879867b72eb (diff) | |
parent | 03bd6bedd346bb256f5649d2ac4fe5dcdfef5d55 (diff) | |
download | rails-ee0ca345d9d7d4d86d7da83d101421c8fa0ae3f3.tar.gz rails-ee0ca345d9d7d4d86d7da83d101421c8fa0ae3f3.tar.bz2 rails-ee0ca345d9d7d4d86d7da83d101421c8fa0ae3f3.zip |
Merge pull request #21646 from schneems/schneems/no-hardcoded-ignored-lines-in-schema-dumper
Don't hardcode table name
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 2 |
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 |