diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-04-20 22:13:17 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-04-20 22:13:17 +0200 |
commit | 3ff6b800f2fc3552d98a0a31947c66a21e4479eb (patch) | |
tree | df5115556d7099ee0372588f579e8d881f74e22b /activerecord/test/cases/migration | |
parent | fa8920256bd40c7559c7105026f93dd912741d4d (diff) | |
parent | 62c01d3c1f9a117d6869cb006e1cfe1ed456df04 (diff) | |
download | rails-3ff6b800f2fc3552d98a0a31947c66a21e4479eb.tar.gz rails-3ff6b800f2fc3552d98a0a31947c66a21e4479eb.tar.bz2 rails-3ff6b800f2fc3552d98a0a31947c66a21e4479eb.zip |
Merge pull request #24221 from gregmolnar/uuid
create_join_table should work with uuid
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/create_join_table_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/create_join_table_test.rb b/activerecord/test/cases/migration/create_join_table_test.rb index 0a7b57455c..920c472c73 100644 --- a/activerecord/test/cases/migration/create_join_table_test.rb +++ b/activerecord/test/cases/migration/create_join_table_test.rb @@ -132,6 +132,13 @@ module ActiveRecord end end + if current_adapter?(:PostgreSQLAdapter) + def test_create_join_table_with_uuid + connection.create_join_table :artists, :musics, column_options: { type: :uuid } + assert_equal [:uuid, :uuid], connection.columns(:artists_musics).map(&:type) + end + end + private def with_table_cleanup |