Sha256: 36d0e25efecc2b2168dd5f58a36e7b3a4929f71270e2e98f8e83dfb10fa41dbd

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

class AddRecursoAgendamentos < ActiveRecord::Migration
  def up
    Recurso.create(:titulo => "Agendamentos", :descricao => 'Permite visualizar os agendamentos', :chave => 'agendamentos')
  end

  def down
    agendamentos = Recurso.where("chave = 'agendamentos'").first
    if agendamentos.present?
      agendamentos.delete
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-sabia-1.0.1 db/migrate/20151129215016_add_recurso_agendamentos.rb