diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-02-02 18:43:05 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-02-02 18:43:05 -0700 |
commit | 186418724c6da41caeb0fd304894bcfcc154b8bb (patch) | |
tree | a45917320277d98063e7ce1486e6822ff6301e00 /activerecord/test | |
parent | 8a42525dea42169740f0f288f5baf7c2903628a2 (diff) | |
parent | b8e1f202676b4788c56241b124c401beff9f4014 (diff) | |
download | rails-186418724c6da41caeb0fd304894bcfcc154b8bb.tar.gz rails-186418724c6da41caeb0fd304894bcfcc154b8bb.tar.bz2 rails-186418724c6da41caeb0fd304894bcfcc154b8bb.zip |
Merge pull request #18791 from Sinjo/consistent-foreign-key-name-generation
Consistent foreign key name generation
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/foreign_key_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration/foreign_key_test.rb b/activerecord/test/cases/migration/foreign_key_test.rb index 78d9dd90a3..333fb7d4c6 100644 --- a/activerecord/test/cases/migration/foreign_key_test.rb +++ b/activerecord/test/cases/migration/foreign_key_test.rb @@ -57,7 +57,7 @@ module ActiveRecord assert_equal "rockets", fk.to_table assert_equal "rocket_id", fk.column assert_equal "id", fk.primary_key - assert_match(/^fk_rails_.{10}$/, fk.name) + assert_equal("fk_rails_78146ddd2e", fk.name) end def test_add_foreign_key_with_column @@ -71,7 +71,7 @@ module ActiveRecord assert_equal "rockets", fk.to_table assert_equal "rocket_id", fk.column assert_equal "id", fk.primary_key - assert_match(/^fk_rails_.{10}$/, fk.name) + assert_equal("fk_rails_78146ddd2e", fk.name) end def test_add_foreign_key_with_non_standard_primary_key |