又一个英语翻译问题,飞猪大侠快来!
the :force => true at the beginning of the block isn't usually required- we've included it in
this case to counter the fact that we created a table for this model back in Chapter 4,using raw SQL
Without it,our create_table call would fail,because the table already exists.However,leaving
:force => true in this migration will mean that Story records will be wiped with each furture migration,
so set it back to False after you're performed the migration to prevent this.
:force => true 在代码块的开头不是必要的,在这个例子中我们包含它相反的事实是我们在第四章创建了一个这样一个表。
没有它,用未加工的SQL 我们创建表访问会失败,因为这表已经存在,然后:force =>true 存在于migration意义在于Story记录会擦写
每个未来的migration,所以设置它失败,当你执行migration来预防它。
大家会怎么翻译这句子,我翻译得很烂