aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_migration.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-06-11 04:27:15 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-06-13 13:52:07 +0900
commitc5ecc338e863e771adcbcd87d5c23ae5e7ca7894 (patch)
tree1087510cc701b950f335f5e4cddd3f31381cf4af /activerecord/lib/active_record/schema_migration.rb
parent75eb3d0cec389c9e288968b46f19bd17b5feec41 (diff)
downloadrails-c5ecc338e863e771adcbcd87d5c23ae5e7ca7894.tar.gz
rails-c5ecc338e863e771adcbcd87d5c23ae5e7ca7894.tar.bz2
rails-c5ecc338e863e771adcbcd87d5c23ae5e7ca7894.zip
Remove duplicated `table_exists?`
`table_exists?` is already exist in `ModelSchema`. https://github.com/rails/rails/blob/5cab344494c340ea82a35b46efa06b94f0b7730b/activerecord/lib/active_record/model_schema.rb#L339-L341
Diffstat (limited to 'activerecord/lib/active_record/schema_migration.rb')
-rw-r--r--activerecord/lib/active_record/schema_migration.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/schema_migration.rb b/activerecord/lib/active_record/schema_migration.rb
index 74547de862..dec7fee986 100644
--- a/activerecord/lib/active_record/schema_migration.rb
+++ b/activerecord/lib/active_record/schema_migration.rb
@@ -22,10 +22,6 @@ module ActiveRecord
"#{table_name_prefix}#{schema_migrations_table_name}#{table_name_suffix}"
end
- def table_exists?
- connection.table_exists?(table_name)
- end
-
def create_table
unless table_exists?
version_options = connection.internal_string_options_for_primary_key