fixed a ActiveRecord::ReadOnlyRecord error occuring during the migration when rails 3.2 is used and there's existing data in the db.
Merge pull request #1838 from witlessbird/fix-readonlyrecord-exception

fixed a ActiveRecord::ReadOnlyRecord error occuring during the migration