rosa-build/db/migrate/20120403110931_clear_produc...

14 lines
405 B
Ruby
Raw Normal View History

class ClearProduct < ActiveRecord::Migration
def self.up
remove_column :products, :build_status
remove_column :products, :build_path
remove_column :products, :system_wide
end
def self.down
2014-01-21 04:51:49 +00:00
add_column :products, :build_status, :integer, default: 2, null: false
add_column :products, :build_path, :string
2014-01-21 04:51:49 +00:00
add_column :products, :system_wide, :boolean, default: false
end
end