aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-17 14:36:00 -0800
committerSean Griffin <sean@thoughtbot.com>2014-11-17 14:57:01 -0800
commitbf149679f426c1f6d3e5d280ed19b42f62c9b33f (patch)
treea1ee48851951a4e1941c7a73e621925649acdd52 /activerecord
parent916731686ba2b48abf96251639fdb8b8af63814c (diff)
downloadrails-bf149679f426c1f6d3e5d280ed19b42f62c9b33f.tar.gz
rails-bf149679f426c1f6d3e5d280ed19b42f62c9b33f.tar.bz2
rails-bf149679f426c1f6d3e5d280ed19b42f62c9b33f.zip
Force table creation in tests
If something causes the teardown block to not get run (errors, interrupting test runs), we have to manually delete them, which is a pain.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/migration/foreign_key_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration/foreign_key_test.rb b/activerecord/test/cases/migration/foreign_key_test.rb
index 406dd70c37..52e963a14f 100644
--- a/activerecord/test/cases/migration/foreign_key_test.rb
+++ b/activerecord/test/cases/migration/foreign_key_test.rb
@@ -17,11 +17,11 @@ module ActiveRecord
setup do
@connection = ActiveRecord::Base.connection
- @connection.create_table "rockets" do |t|
+ @connection.create_table "rockets", force: true do |t|
t.string :name
end
- @connection.create_table "astronauts" do |t|
+ @connection.create_table "astronauts", force: true do |t|
t.string :name
t.references :rocket
end