diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-07-06 16:04:14 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-07-06 16:04:14 -0600 |
commit | 3559230720d4ea52d290da4ff4734b5236220fcd (patch) | |
tree | 0f88c2f3a04ff278987abf0537daa5af1f3b18c7 /activerecord/test/cases/adapters/postgresql/bit_string_test.rb | |
parent | 2f716694f20cd19464029513fb59440fd9000840 (diff) | |
download | rails-3559230720d4ea52d290da4ff4734b5236220fcd.tar.gz rails-3559230720d4ea52d290da4ff4734b5236220fcd.tar.bz2 rails-3559230720d4ea52d290da4ff4734b5236220fcd.zip |
Remove the `text?` predicate from the type objects
This was only used for uniqueness validations. The first usage was in
conjunction with `limit`. Types which cast to string, but are not
considered text cannot have a limit. The second case was only with an
explicit `:case_sensitive => true` option given by the user.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/bit_string_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/bit_string_test.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/bit_string_test.rb b/activerecord/test/cases/adapters/postgresql/bit_string_test.rb index 9ee3610afd..72222c01fd 100644 --- a/activerecord/test/cases/adapters/postgresql/bit_string_test.rb +++ b/activerecord/test/cases/adapters/postgresql/bit_string_test.rb @@ -26,7 +26,6 @@ class PostgresqlBitStringTest < ActiveRecord::TestCase column = PostgresqlBitString.columns_hash["a_bit"] assert_equal :bit, column.type assert_equal "bit(8)", column.sql_type - assert_not column.text? assert_not column.number? assert_not column.binary? assert_not column.array @@ -36,7 +35,6 @@ class PostgresqlBitStringTest < ActiveRecord::TestCase column = PostgresqlBitString.columns_hash["a_bit_varying"] assert_equal :bit_varying, column.type assert_equal "bit varying(4)", column.sql_type - assert_not column.text? assert_not column.number? assert_not column.binary? assert_not column.array |