Mercurial > hg > soundsoftware-site
comparison db/migrate/.svn/text-base/20101107130441_add_custom_fields_visible.rb.svn-base @ 38:33d69fee1d99 cannam
* Merge SVN update from default branch
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:41:40 +0000 |
parents | 94944d00e43c |
children |
comparison
equal
deleted
inserted
replaced
29:192d132064a5 | 38:33d69fee1d99 |
---|---|
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 |