Mercurial > hg > soundsoftware-site
view db/migrate/103_set_custom_fields_editable.rb @ 34:09b1d4349da3 live
* Doh - of course we still need the leading 0 for octal
author | Chris Cannam |
---|---|
date | Thu, 21 Oct 2010 11:19:14 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
class SetCustomFieldsEditable < ActiveRecord::Migration def self.up UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}") end def self.down UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}") end end