Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

force table creation

  • Loading branch information...
commit f39fad09c1ae2a20f5a3186ab21be3cd8d517fce 1 parent d516971
@tenderlove tenderlove authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 activerecord/test/cases/adapters/postgresql/bit_string_test.rb
View
5 activerecord/test/cases/adapters/postgresql/bit_string_test.rb
@@ -11,13 +11,14 @@ class PostgresqlBitString < ActiveRecord::Base; end
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
Please sign in to comment.
Something went wrong with that request. Please try again.