blob: e62c54e8927c27090633cbfb67905cf4a1a25c5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class AddProjectsDefaultVersionId < ActiveRecord::Migration[4.2]
def self.up
# Don't try to add the column if redmine_default_version plugin was used
unless column_exists?(:projects, :default_version_id, :integer)
add_column :projects, :default_version_id, :integer, :default => nil
end
end
def self.down
remove_column :projects, :default_version_id
end
end
|