diff options
-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 |