diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-26 16:00:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-26 16:00:40 +0900 |
commit | 9507b4f02d332cccf76ca803b967dab69ab6bfdd (patch) | |
tree | eac5a7a89279bb9bd888051f91bd37ef33618dc8 /activerecord/test | |
parent | 87d6fb4ece170d58ad8e0a596e9fbc96a868d03b (diff) | |
download | rails-9507b4f02d332cccf76ca803b967dab69ab6bfdd.tar.gz rails-9507b4f02d332cccf76ca803b967dab69ab6bfdd.tar.bz2 rails-9507b4f02d332cccf76ca803b967dab69ab6bfdd.zip |
Make `sql_type` of primary key in SQLite to comparable with an integer (#28008)
Originally I tried to add `assert_equal pk.sql_type, ref.sql_type`. But
the assert failed even though the same type due to `sql_type` of primary
key in SQLite is upper case. Prefer lower case like other types.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index b076b452e7..a49990008c 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -104,7 +104,7 @@ class BasicsTest < ActiveRecord::TestCase pk = Author.columns_hash["id"] ref = Post.columns_hash["author_id"] - assert_equal pk.bigint?, ref.bigint? + assert_equal pk.sql_type, ref.sql_type end def test_many_mutations |