2012-04-04 22:43:06 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-04-03 13:21:39 +01:00
|
|
|
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
|
|
|
|
add_column :products, :build_status, :integer, :default => 2, :null => false
|
|
|
|
add_column :products, :build_path, :string
|
|
|
|
add_column :products, :system_wide, :boolean, :default => false
|
|
|
|
end
|
2012-04-04 22:43:06 +01:00
|
|
|
end
|