To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 20090403001910_add_project_to_enumerations.rb @ 912:5e80956cc792
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
|