Skip to content

Commit

Permalink
specs bug fix: use force: :cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Sep 6, 2015
1 parent c7fee74 commit 7c58d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/association_spec.rb
Expand Up @@ -676,7 +676,7 @@ def with_associations_config(opts, &block)
def create_tables(*table_defs)
ActiveRecord::Migration.suppress_messages do
ActiveRecord::Base.connection.tables.each do |table|
ActiveRecord::Migration.drop_table table
ActiveRecord::Migration.drop_table table, force: :cascade
end
table_defs.each_slice(3) do |table_name, opts, columns_with_options|
ActiveRecord::Migration.create_table table_name, opts do |t|
Expand Down

0 comments on commit 7c58d11

Please sign in to comment.