aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorGuilherme Goettems Schneider <guigs81@gmail.com>2019-05-31 16:59:47 -0300
committerGuilherme Goettems Schneider <guigs81@gmail.com>2019-05-31 17:01:36 -0300
commit5f2bc3a6a00a2277481de7241f7a2066e886b84d (patch)
tree5102de3183abbaead0c75926cbbb9499a07ef02b /activerecord/lib/active_record
parent06ae49d99c4bc6263a913529ca969d5505fcfdbe (diff)
downloadrails-5f2bc3a6a00a2277481de7241f7a2066e886b84d.tar.gz
rails-5f2bc3a6a00a2277481de7241f7a2066e886b84d.tar.bz2
rails-5f2bc3a6a00a2277481de7241f7a2066e886b84d.zip
Fix table comment also being applied to the primary key column
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index 107d1ce855..bec22c9b03 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -302,7 +302,7 @@ module ActiveRecord
if pk.is_a?(Array)
td.primary_keys pk
else
- td.primary_key pk, options.fetch(:id, :primary_key), options
+ td.primary_key pk, options.fetch(:id, :primary_key), options.except(:comment)
end
end