Archive for April, 2011

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

  • 225,274 hits