view db/migrate/.svn/text-base/102_add_custom_fields_editable.rb.svn-base @ 563:a76abc63257a feature_36

working on the author<->user logic.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 08 Aug 2011 18:13:30 +0100
parents 513646585e45
children
line wrap: on
line source
class AddCustomFieldsEditable < ActiveRecord::Migration
  def self.up
    add_column :custom_fields, :editable, :boolean, :default => true
  end

  def self.down
    remove_column :custom_fields, :editable
  end
end