blob: 36db4d8237f27f8cac05f41858550846fab23d2a (
plain)
1
2
3
4
5
6
7
8
9
10
|
class AddVersionsStatus < ActiveRecord::Migration[4.2]
def self.up
add_column :versions, :status, :string, :default => 'open'
Version.update_all("status = 'open'")
end
def self.down
remove_column :versions, :status
end
end
|