Project

General

Profile

Download (907 Bytes) Statistics
| Branch: | Tag: | Revision:
class CreateAuthSources < ActiveRecord::Migration
def self.up
create_table :auth_sources do |t|
t.string "type", :limit => 30, :default => "", :null => false
t.string "name", :limit => 60, :default => "", :null => false
t.string "host", :limit => 60
t.integer "port"
t.string "account"
t.string "account_password", :limit => 60
t.string "base_dn"
t.string "attr_login", :limit => 30
t.string "attr_firstname", :limit => 30
t.string "attr_lastname", :limit => 30
t.string "attr_mail", :limit => 30
t.boolean "onthefly_register", :default => false, :null => false
t.boolean "tls", :default => false, :null => false

t.timestamps
end
end

def self.down
drop_table :auth_sources
end
end
(14-14/83)