rosa-build/db/migrate/20120113121748_add_issue_st...

10 lines
223 B
Ruby
Raw Normal View History

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