Sha256: 6e5c505bc8c3c80d82e492fb44dcc0e9a5abb790a06cb647f5e4faf8eef0fd2f
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literals: true require "jobshop/helpers/migration.rb" class CreateOrganizations < ActiveRecord::Migration[5.2] include Jobshop::Helpers::Migration def change create_table :jobshop_organizations, id: false do |t| t.uuid :organization_id, null: false, default: "gen_random_uuid()" t.index :organization_id, unique: true, name: :idx_jobshop_organizations_pkey t.citext :name, index: true t.index %i[ organization_id name ], unique: true t.timestamps end idx_table_name_pkey "jobshop_organizations" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.163 | db/migrate/20171216021339_create_organizations.rb |