Sha256: 003934e962d11baa3a0ccdfff06ada9e4d65be392f0f1bfc098c4166ebd9cf16
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require "jobshop/helpers/migration.rb" class CreatePlaces < ActiveRecord::Migration[5.2] include Jobshop::Helpers::Migration def change create_table :jobshop_places, id: false do |t| t.uuid :organization_id, null: false t.uuid :place_id, null: false, default: "gen_random_uuid()" t.index %i[ organization_id place_id ], unique: true, name: "idx_jobshop_places_pkey" t.citext :name, null: false t.index %i[ organization_id name ], unique: true t.timestamps end idx_table_name_pkey "jobshop_places" fk_organization_id "jobshop_places" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.163 | db/migrate/20171216022020_create_places.rb |