;]
[askyou.git] / db / migrate / 20090403001910_add_project_to_enumerations.rb
bloba3db6d51e075f06dd7ede16e76ce79a086ce5e35
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
7   def self.down
8     remove_index :enumerations, :project_id
9     remove_column :enumerations, :project_id
10   end
11 end