Archive for the 'migration' Category

14
Apr
11

rails migrations change default value of a column


Example of changing a column’s default value:


change_column_default(:messages,:read,false)




Blog Stats

  • 116,541 hits

Follow

Get every new post delivered to your Inbox.