20161012183128_create_rack_cas_sessions.rb 388 B

12345678910111213141516171819
  1. class CreateRackCasSessions < ActiveRecord::Migration
  2. def self.up
  3. create_table :sessions do |t|
  4. t.string :session_id, :null => false
  5. t.string :cas_ticket
  6. t.text :data
  7. t.timestamps
  8. end
  9. add_index :sessions, :session_id
  10. add_index :sessions, :cas_ticket
  11. add_index :sessions, :updated_at
  12. end
  13. def self.down
  14. drop_table :sessions
  15. end
  16. end