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)

Advertisements



Blog Stats

  • 229,299 hits