Sha256: 0921887a86422e2d5eb10e80caae0b852ed1d4852bbe1650d8779813a7c0b298
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
class RenomearPerfilAgendador < ActiveRecord::Migration def up agendador = Perfil.where("nome = 'Agendador'").first if agendador.present? agendador.update_attributes(:nome => 'Recepcionista') end end def down recepcionista = Perfil.find("nome = 'Recepcionista'").first if recepcionista.present? recepcionista.update_attributes(:nome => 'Agendador') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | db/migrate/20151129205606_renomear_perfil_agendador.rb |