view .svn/pristine/ec/ec80e6b58d5a9273315682fa45876f90222c9b81.svn-base @ 979:56a38a9f6204 cannam

Various fixes
author Chris Cannam
date Thu, 25 Oct 2012 14:08:58 +0100
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