OpenProject is the leading open source project management software.
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.
openproject/db/migrate/007_refactor_deliverable_in...

18 lines
598 B

class RefactorDeliverableIntermediates < ActiveRecord::Migration
def self.up
add_column :deliverable_costs, :cost_type_id, :integer # , :null => false
remove_column :deliverable_costs, :rate_id
add_column :deliverable_hours, :user_id, :integer #, :null => false
remove_column :deliverable_hours, :rate_id
end
def self.down
add_column :deliverable_costs, :rate_id, :integer, :null => false
remove_column :deliverable_costs, :cost_type_id
add_column :deliveable_hours, :rate_id, :integer, :null => false
remove_column :deliverable_hours, :user_id
end
end