Sha256: 545cbe697e0ae9f252500bf06df4499e9ec446aec1184efd49bb38d4b4b21e91

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

class AddForeignKeysToUnidadesSaude < ActiveRecord::Migration[5.0]
  def up
    add_foreign_key :unidades_saude, :cidades, on_delete: :cascade
  end

  def down
    remove_foreign_key :unidades_saude, :cidades
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-sabia-1.0.1 db/migrate/20170525104642_add_foreign_keys_to_unidades_saude.rb