foreman/db/migrate/20100914092104_add_my_booleans_to_user.rb @ 8a65dff7
9fd7478e | Paul Kelly | class AddMyBooleansToUser < ActiveRecord::Migration
|
|
def self.up
|
|||
add_column :users, :domains_andor, :string, :limit => 3, :default => "or"
|
|||
add_column :users, :hostgroups_andor, :string, :limit => 3, :default => "or"
|
|||
add_column :users, :facts_andor, :string, :limit => 3, :default => "or"
|
|||
end
|
|||
def self.down
|
|||
remove_column :users, :facts_andor
|
|||
remove_column :users, :hostgroups_andor
|
|||
remove_column :users, :domains_andor
|
|||
end
|
|||
end
|