Mercurial > hg > soundsoftware-site
comparison db/migrate/.svn/text-base/20101107130441_add_custom_fields_visible.rb.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
22:40f7cfd4df19 | 37:94944d00e43c |
---|---|
1 class AddCustomFieldsVisible < ActiveRecord::Migration | |
2 def self.up | |
3 add_column :custom_fields, :visible, :boolean, :null => false, :default => true | |
4 CustomField.update_all("visible = #{CustomField.connection.quoted_true}") | |
5 end | |
6 | |
7 def self.down | |
8 remove_column :custom_fields, :visible | |
9 end | |
10 end |