Sha256: bb7cdd795023d878eb6eacb58c95ea7491dee7f956fb27783e9c3b5740eb5313

Contents?: true

Size: 620 Bytes

Versions: 15

Compression:

Stored size: 620 Bytes

Contents

class <%= class_name %> < ActiveRecord::Migration
  def self.up
    add_column :<%= session_table_name %>, :service_ticket, :string

    add_index :<%= session_table_name %>, :service_ticket
    
    create_table :<%= pgtiou_table_name %> do |t|
      t.string :pgt_iou, :null => false
      t.string :pgt_id, :null => false
      t.timestamps
    end

    add_index :<%= pgtiou_table_name %>, :pgt_iou, :unique => true
  end

  def self.down
    drop_table :<%= pgtiou_table_name %>

    remove_index :<%= session_table_name %>, :service_ticket

    remove_column :<%= session_table_name %>, :service_ticket
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
rubycas-client-2.3.10.rc1 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.9 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.9.rc1 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.8 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.7 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.6 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.5 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.3 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.2 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.1 rails_generators/active_record_ticket_store/templates/migration.rb
rubycas-client-2.3.0.rc1 rails_generators/active_record_ticket_store/templates/migration.rb
vibes-rubycas-client-2.3.0.alpha8 rails_generators/active_record_ticket_store/templates/migration.rb
vibes-rubycas-client-2.3.0.alpha7 rails_generators/active_record_ticket_store/templates/migration.rb
vibes-rubycas-client-2.3.0.alpha6 rails_generators/active_record_ticket_store/templates/migration.rb
vibes-rubycas-client-2.3.0.alpha5 rails_generators/active_record_ticket_store/templates/migration.rb