Sha256: f27835ef5f1ae28f510c184f5058eb81eb9852645158f8d975eb293f4bee443d

Contents?: true

Size: 178 Bytes

Versions: 24

Compression:

Stored size: 178 Bytes

Contents

class AddForeignKeyForSite < ActiveRecord::Migration[5.0]
  def change
    add_foreign_key :jobshop_users, :jobshop_sites, column: "site_id",
      on_delete: :cascade
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
jobshop-0.0.5 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.4.2p4 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.4.1p4 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.4.0p13 db/migrate/20160321213638_add_foreign_key_for_site.rb