diff options
author | Melody <meltheadorable@gmail.com> | 2015-02-04 11:07:08 -0500 |
---|---|---|
committer | Melody <meltheadorable@gmail.com> | 2015-02-04 11:07:08 -0500 |
commit | 2eeb29a925f440d607801d609124ffc3140c2bba (patch) | |
tree | 71054ed23bd81d84381f9ba4153462db151ec987 /activerecord/test | |
parent | 17c5379827819a25a0501c4aff90e7d59ac080bd (diff) | |
download | rails-2eeb29a925f440d607801d609124ffc3140c2bba.tar.gz rails-2eeb29a925f440d607801d609124ffc3140c2bba.tar.bz2 rails-2eeb29a925f440d607801d609124ffc3140c2bba.zip |
Fix test cases for money, bit and bit_varying
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/bit_string_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/money_test.rb | 4 |
2 files changed, 4 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 d6b976a6d0..52fa46bd01 100644 --- a/activerecord/test/cases/adapters/postgresql/bit_string_test.rb +++ b/activerecord/test/cases/adapters/postgresql/bit_string_test.rb @@ -13,6 +13,8 @@ class PostgresqlBitStringTest < ActiveRecord::TestCase @connection.create_table('postgresql_bit_strings', :force => true) do |t| t.bit :a_bit, default: "00000011", limit: 8 t.bit_varying :a_bit_varying, default: "0011", limit: 4 + t.bit :another_bit + t.bit_varying :another_bit_varying end end diff --git a/activerecord/test/cases/adapters/postgresql/money_test.rb b/activerecord/test/cases/adapters/postgresql/money_test.rb index 4288f754c0..f5621fd3ec 100644 --- a/activerecord/test/cases/adapters/postgresql/money_test.rb +++ b/activerecord/test/cases/adapters/postgresql/money_test.rb @@ -10,8 +10,8 @@ class PostgresqlMoneyTest < ActiveRecord::TestCase @connection = ActiveRecord::Base.connection @connection.execute("set lc_monetary = 'C'") @connection.create_table('postgresql_moneys', force: true) do |t| - t.column "wealth", "money" - t.column "depth", "money", default: "150.55" + t.money "wealth" + t.money "depth", default: "150.55" end end |