view .svn/pristine/ec/ec80e6b58d5a9273315682fa45876f90222c9b81.svn-base @ 1600:ed9c467ef922 dockerise

Add hggit extension
author Chris Cannam
date Wed, 23 Aug 2017 11:32:50 +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