Class: CASServer::Models::RenamePgtForeignKeys

Inherits:
V
  • Object
show all
Defined in:
lib/casserver/models.rb

Class Method Summary collapse

Class Method Details

.downObject



260
261
262
263
# File 'lib/casserver/models.rb', line 260

def self.down
  rename_column :casserver_st,  :granted_by_pgt_id,         :proxy_granting_ticket_id
  rename_column :casserver_st,  :granted_by_tgt_id,         :tgt_id
end

.upObject



255
256
257
258
# File 'lib/casserver/models.rb', line 255

def self.up
  rename_column :casserver_st,  :proxy_granting_ticket_id,  :granted_by_pgt_id
  rename_column :casserver_st,  :tgt_id,                    :granted_by_tgt_id
end