What does :force => true mean in the schema file

后端 未结 2 1825
無奈伤痛
無奈伤痛 2021-02-07 04:03

If you look in db/schema.rb you will see something like:

create_table \"users\", :force => true do |t|

What does the :force => true

2条回答
  •  长情又很酷
    2021-02-07 05:00

    This simply drops the table before creation. Check the docs for more info here: ActiveRecord::ConnectionAdapters::SchemaStatements

提交回复
热议问题