aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-12-06 11:03:35 +1030
committerGitHub <noreply@github.com>2016-12-06 11:03:35 +1030
commitd19528c0b6740b857bf10f9e8ca58de940b279ad (patch)
treea3862f91104a7de5fc4b3c7574d41cf854a41c33 /activerecord
parent9b6f312734ce4cc727c4818918a146edd2212146 (diff)
parentf8b623919ad44d2f33ed6aeb5c57aa904d2fbe48 (diff)
downloadrails-d19528c0b6740b857bf10f9e8ca58de940b279ad.tar.gz
rails-d19528c0b6740b857bf10f9e8ca58de940b279ad.tar.bz2
rails-d19528c0b6740b857bf10f9e8ca58de940b279ad.zip
Merge pull request #27277 from kamipo/remove_unnecessary_variable
Remove unnecessary `connection_name` variable
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/migration/compatibility.rb3
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