diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-01-19 09:19:16 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-01-19 09:19:16 +0100 |
commit | 1d01d47fe03ad312601c3ee45972a4bc8f870c2b (patch) | |
tree | 8f184d192a1e3d5b8b1e8eb7cc3b4842df7f6c9e | |
parent | aa8d11f9b2140d726854c568006d1c751bc28e5d (diff) | |
parent | d9412d9bb61177853f90902ac891a9b2908206bb (diff) | |
download | rails-1d01d47fe03ad312601c3ee45972a4bc8f870c2b.tar.gz rails-1d01d47fe03ad312601c3ee45972a4bc8f870c2b.tar.bz2 rails-1d01d47fe03ad312601c3ee45972a4bc8f870c2b.zip |
Merge pull request #18594 from prathamesh-sonpatki/use-force-true-in-templates
Use force: true options for creating tables in bug templates
-rw-r--r-- | guides/bug_report_templates/active_record_gem.rb | 4 | ||||
-rw-r--r-- | guides/bug_report_templates/active_record_master.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/guides/bug_report_templates/active_record_gem.rb b/guides/bug_report_templates/active_record_gem.rb index 66bbb15afb..b295d9d21f 100644 --- a/guides/bug_report_templates/active_record_gem.rb +++ b/guides/bug_report_templates/active_record_gem.rb @@ -12,10 +12,10 @@ ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:' 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 diff --git a/guides/bug_report_templates/active_record_master.rb b/guides/bug_report_templates/active_record_master.rb index d95354e12d..9557f0b7c5 100644 --- a/guides/bug_report_templates/active_record_master.rb +++ b/guides/bug_report_templates/active_record_master.rb @@ -21,10 +21,10 @@ ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:' 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 |