view .svn/pristine/ec/ec80e6b58d5a9273315682fa45876f90222c9b81.svn-base @ 1492:54f320b40728 live

Merge
author Chris Cannam
date Mon, 17 Mar 2014 08:56:45 +0000
parents cbb26bc654de
children
line wrap: on
line source
class AddProjectToEnumerations < ActiveRecord::Migration
  def self.up
    add_column :enumerations, :project_id, :integer, :null => true, :default => nil
    add_index :enumerations, :project_id
  end

  def self.down
    remove_index :enumerations, :project_id
    remove_column :enumerations, :project_id
  end
end