To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20090403001910_add_project_to_enumerations.rb @ 442:753f1380d6bc

History | View | Annotate | Download (318 Bytes)

1
class AddProjectToEnumerations < ActiveRecord::Migration
2
  def self.up
3
    add_column :enumerations, :project_id, :integer, :null => true, :default => nil
4
    add_index :enumerations, :project_id
5
  end
6

    
7
  def self.down
8
    remove_index :enumerations, :project_id
9
    remove_column :enumerations, :project_id
10
  end
11
end