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/003_add_deliverable_to_issu...

19 lines
403 B

class AddDeliverableToIssues < ActiveRecord::Migration
def initialize
super
@issues_table_exists = ActiveRecord::Base.connection.tables.include? 'issues'
end
def self.up
if @issues_table_exists
add_column :issues, :deliverable_id, :integer, :null => true
end
end
def self.down
if @issues_table_exists
remove_column :issues, :deliverable_id
end
end
end