2012-01-13 15:07:01 +00:00
|
|
|
class AddIssueStatusDefaultValue < ActiveRecord::Migration
|
|
|
|
def self.up
|
2014-01-21 04:51:49 +00:00
|
|
|
change_column :issues, :status, :string, default: 'open'
|
2012-01-13 15:07:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2014-01-21 04:51:49 +00:00
|
|
|
change_column :issues, :status, :string, null: true
|
2012-01-13 15:07:01 +00:00
|
|
|
end
|
|
|
|
end
|