201009121833_create_tables.rb 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. class CreateTables < ActiveRecord::Migration
  2. def self.up
  3. create_table :casserver_lt, :force => true do |t|
  4. t.column :ticket, :string, :null => false
  5. t.column :created_on, :timestamp, :null => false
  6. t.column :consumed, :datetime, :null => true
  7. t.column :client_hostname, :string, :null => false
  8. end
  9. create_table :casserver_st, :force => true do |t|
  10. t.column :ticket, :string, :null => false
  11. t.column :service, :text, :null => false
  12. t.column :created_on, :timestamp, :null => false
  13. t.column :consumed, :datetime, :null => true
  14. t.column :client_hostname, :string, :null => false
  15. t.column :username, :string, :null => false
  16. t.column :type, :string, :null => false
  17. t.column :granted_by_pgt_id, :integer, :null => true
  18. t.column :granted_by_tgt_id, :integer, :null => true
  19. end
  20. create_table :casserver_tgt, :force => true do |t|
  21. t.column :ticket, :string, :null => false
  22. t.column :created_on, :timestamp, :null => false
  23. t.column :client_hostname, :string, :null => false
  24. t.column :username, :string, :null => false
  25. t.column :extra_attributes, :text
  26. end
  27. create_table :casserver_pgt, :force => true do |t|
  28. t.column :ticket, :string, :null => false
  29. t.column :created_on, :timestamp, :null => false
  30. t.column :client_hostname, :string, :null => false
  31. t.column :iou, :string, :null => false
  32. t.column :service_ticket_id, :integer, :null => false
  33. end
  34. end
  35. def self.down
  36. end
  37. end