diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-03 14:40:41 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-03 14:41:11 -0700 |
commit | f39fad09c1ae2a20f5a3186ab21be3cd8d517fce (patch) | |
tree | 3980a2b50c805486ff3702cbda23c1f75fc81561 /activerecord/test | |
parent | d516971155b342f9312eaa493ad91629f53ad356 (diff) | |
download | rails-f39fad09c1ae2a20f5a3186ab21be3cd8d517fce.tar.gz rails-f39fad09c1ae2a20f5a3186ab21be3cd8d517fce.tar.bz2 rails-f39fad09c1ae2a20f5a3186ab21be3cd8d517fce.zip |
force table creation
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/bit_string_test.rb | 5 |
1 files changed, 3 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 2d1bc58020..3a9397bc26 100644 --- a/activerecord/test/cases/adapters/postgresql/bit_string_test.rb +++ b/activerecord/test/cases/adapters/postgresql/bit_string_test.rb @@ -11,13 +11,14 @@ class PostgresqlBitStringTest < ActiveRecord::TestCase def setup @connection = ActiveRecord::Base.connection - @connection.create_table('postgresql_bit_strings') do |t| + @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 end end - teardown do + def teardown + return unless @connection @connection.execute 'DROP TABLE IF EXISTS postgresql_bit_strings' end |