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

  • 223,713 hits