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.107 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.101 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.67 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.61 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.59 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.53 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.41 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.37 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.29 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.23 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.16 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.15 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.14 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.13 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.12 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.11 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.10 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.9 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.7 db/migrate/20160321213638_add_foreign_key_for_site.rb
jobshop-0.0.6 db/migrate/20160321213638_add_foreign_key_for_site.rb