diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-06 08:59:48 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-06 08:59:48 +0900 |
commit | f8b623919ad44d2f33ed6aeb5c57aa904d2fbe48 (patch) | |
tree | a261c0c7bcd3bcdce8d3f1feacef58e04a0875fc | |
parent | 9e352e38bdd52a06c06d2de88c155b84b9f18ca1 (diff) | |
download | rails-f8b623919ad44d2f33ed6aeb5c57aa904d2fbe48.tar.gz rails-f8b623919ad44d2f33ed6aeb5c57aa904d2fbe48.tar.bz2 rails-f8b623919ad44d2f33ed6aeb5c57aa904d2fbe48.zip |
Remove unnecessary `connection_name` variable
-rw-r--r-- | activerecord/lib/active_record/migration/compatibility.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration/compatibility.rb b/activerecord/lib/active_record/migration/compatibility.rb index 9d3652d63b..9c357e1604 100644 --- a/activerecord/lib/active_record/migration/compatibility.rb +++ b/activerecord/lib/active_record/migration/compatibility.rb @@ -104,8 +104,7 @@ module ActiveRecord class V5_0 < V5_1 def create_table(table_name, options = {}) - connection_name = self.connection.adapter_name - if connection_name == "PostgreSQL" + if adapter_name == "PostgreSQL" if options[:id] == :uuid && !options[:default] options[:default] = "uuid_generate_v4()" end |