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