Notes posted by ivanoats
RSS feed
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

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.