To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 20101107130441_add_custom_fields_visible.rb @ 441:cbce1fd3b1b7
History | View | Annotate | Download (307 Bytes)
| 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
|