diff options
author | Guilherme Goettems Schneider <guigs81@gmail.com> | 2019-05-31 16:59:47 -0300 |
---|---|---|
committer | Guilherme Goettems Schneider <guigs81@gmail.com> | 2019-05-31 17:01:36 -0300 |
commit | 5f2bc3a6a00a2277481de7241f7a2066e886b84d (patch) | |
tree | 5102de3183abbaead0c75926cbbb9499a07ef02b /activerecord/test/cases | |
parent | 06ae49d99c4bc6263a913529ca969d5505fcfdbe (diff) | |
download | rails-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/test/cases')
-rw-r--r-- | activerecord/test/cases/comment_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/comment_test.rb b/activerecord/test/cases/comment_test.rb index 584e03d196..f2f28462d1 100644 --- a/activerecord/test/cases/comment_test.rb +++ b/activerecord/test/cases/comment_test.rb @@ -44,6 +44,11 @@ if ActiveRecord::Base.connection.supports_comments? @connection.drop_table "blank_comments", if_exists: true end + def test_primary_key_comment + column = Commented.columns_hash["id"] + assert_nil column.comment + end + def test_column_created_in_block column = Commented.columns_hash["name"] assert_equal :string, column.type |