Project

General

Profile

Download (466 Bytes) Statistics
| Branch: | Tag: | Revision:
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
(47-47/83)