提交 d9412d9b 编写于 作者: P Prathamesh Sonpatki

Use force: true options for creating tables in bug templates

 - 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.
上级 53919bbf
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册