To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 6b / 6bbafbe405df07af73d1843fdf80d06a981e814b.svn-base @ 1297:0a574315af3e
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 |