Sha256: ec260933ac1df6c2b987f8875142227580a1bcf01543fe8e099f74d1a586d3ce
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
# frozen_string_literals: true require "jobshop/helpers/migration.rb" class CreatePlaces < ActiveRecord::Migration[5.2] include Jobshop::Helpers::Migration def change create_table_with_auditing :jobshop_places, primary_key: %i[ organization_id place_id ]do |t| t.citext :name, null: false t.timestamps end add_index :jobshop_places, %i[ organization_id name ], unique: true fk_organization :jobshop_places end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.167 | db/migrate/20171216022020_create_places.rb |