diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-11 20:14:01 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-02-01 13:05:47 +0900 |
commit | 57604cf24ce40a23de0e8d75fc366c24c9fe3aac (patch) | |
tree | 2e93a979a143dbf00024606dfaff2373773eb485 /activerecord/test/cases/adapters/mysql2/quoting_test.rb | |
parent | 2f8ba24ec65d7a850e7ec0985d44be4a86da04c5 (diff) | |
download | rails-57604cf24ce40a23de0e8d75fc366c24c9fe3aac.tar.gz rails-57604cf24ce40a23de0e8d75fc366c24c9fe3aac.tar.bz2 rails-57604cf24ce40a23de0e8d75fc366c24c9fe3aac.zip |
Avoid extra `show variables` in migration
`initialize_schema_migrations_table` is called in every migrations.
https://github.com/rails/rails/blob/v5.0.0.beta1/activerecord/lib/active_record/migration.rb#L1080
https://github.com/rails/rails/blob/v5.0.0.beta1/activerecord/lib/active_record/schema.rb#L51
This means that extra `show variables` is called regardless of the
existence of `schema_migrations` table.
This change is to avoid extra `show variables` if `schema_migrations`
table exists.
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2/quoting_test.rb')
0 files changed, 0 insertions, 0 deletions