You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
618 B
Ruby
18 lines
618 B
Ruby
|
2 years ago
|
# Copyright © Emilio González Montaña
|
||
|
|
# Licence: Attribution & no derivatives
|
||
|
|
# * Attribution to the plugin web page URL should be done if you want to use it.
|
||
|
|
# https://redmine.ociotec.com/projects/redmine-plugin-scrum
|
||
|
|
# * No derivatives of this plugin (or partial) are allowed.
|
||
|
|
# Take a look to licence.txt file at plugin root folder for further details.
|
||
|
|
|
||
|
|
class AddIssuesSprintId < ActiveRecord::Migration[4.2]
|
||
|
|
def self.up
|
||
|
|
add_column :issues, :sprint_id, :integer
|
||
|
|
add_index :issues, [:sprint_id], :name => "issues_sprint_id"
|
||
|
|
end
|
||
|
|
|
||
|
|
def self.down
|
||
|
|
remove_column :issues, :sprint_id
|
||
|
|
end
|
||
|
|
end
|