Notes posted by ivanoats
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/ea2273b4310db9ac0109dfaefd489a06?default=http://apidock.com/images/default_avatar_30.png&size=30)
2 thanks
use create table :force => true
if you want to drop a table before creating one in a migration, use the :force => true option of the create_table method
![Default_avatar_30](https://www.gravatar.com/avatar/ea2273b4310db9ac0109dfaefd489a06?default=http://apidock.com/images/default_avatar_30.png&size=30)
2 thanks
used for testing
for example, to use the @message instance variable in a view test,
assigns[:message] = @message
you could type
assigns[:foo] = @message
and then message would be available to the view as @foo.