You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20090403001910_add_project_to_enumerations.rb 323B

1234567891011
  1. class AddProjectToEnumerations < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :enumerations, :project_id, :integer, :null => true, :default => nil
  4. add_index :enumerations, :project_id
  5. end
  6. def self.down
  7. remove_index :enumerations, :project_id
  8. remove_column :enumerations, :project_id
  9. end
  10. end