Skip to content

Commit

Permalink
Use force: true options for creating tables in bug templates
Browse files Browse the repository at this point in the history
 - Generally we have to run the bug templates multiple times to get them
   right and it always complains because the posts and comments tables
   already exist due to earlier runs.
 - Using force: true will eliminate this issue.
  • Loading branch information
prathamesh-sonpatki committed Jan 19, 2015
1 parent 53919bb commit d9412d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions guides/bug_report_templates/active_record_gem.rb
Expand Up @@ -12,10 +12,10 @@
ActiveRecord::Base.logger = Logger.new(STDOUT)

ActiveRecord::Schema.define do
create_table :posts do |t|
create_table :posts, force: true do |t|
end

create_table :comments do |t|
create_table :comments, force: true do |t|
t.integer :post_id
end
end
Expand Down
4 changes: 2 additions & 2 deletions guides/bug_report_templates/active_record_master.rb
Expand Up @@ -21,10 +21,10 @@
ActiveRecord::Base.logger = Logger.new(STDOUT)

ActiveRecord::Schema.define do
create_table :posts do |t|
create_table :posts, force: true do |t|
end

create_table :comments do |t|
create_table :comments, force: true do |t|
t.integer :post_id
end
end
Expand Down

0 comments on commit d9412d9

Please sign in to comment.