79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# File 'lib/casserver/models.rb', line 79
def self.up
if ActiveRecord::Base.connection.table_alias_length > 30
$LOG.info("Creating database with long table names...")
create_table :casserver_login_tickets, :force => true do |t|
t.column :ticket, :string, :null => false
t.column :created_on, :timestamp, :null => false
t.column :consumed, :datetime, :null => true
t.column :client_hostname, :string, :null => false
end
create_table :casserver_service_tickets, :force => true do |t|
t.column :ticket, :string, :null => false
t.column :service, :string, :null => false
t.column :created_on, :timestamp, :null => false
t.column :consumed, :datetime, :null => true
t.column :client_hostname, :string, :null => false
t.column :username, :string, :null => false
t.column :type, :string, :null => false
t.column :proxy_granting_ticket_id, :integer, :null => true
end
create_table :casserver_ticket_granting_tickets, :force => true do |t|
t.column :ticket, :string, :null => false
t.column :created_on, :timestamp, :null => false
t.column :client_hostname, :string, :null => false
t.column :username, :string, :null => false
end
create_table :casserver_proxy_granting_tickets, :force => true do |t|
t.column :ticket, :string, :null => false
t.column :created_on, :timestamp, :null => false
t.column :client_hostname, :string, :null => false
t.column :iou, :string, :null => false
t.column :service_ticket_id, :integer, :null => false
end
end
end
|