Sha256: 65808ee71c70e2aa1da720dbc51e4bfc3c1d48e560530fd55c59eeb9ed85a5e4
Contents?: true
Size: 721 Bytes
Versions: 10
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true Sequel.migration do up do run 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"' create_table :orm_resources do column :id, :uuid, default: Sequel.function(:uuid_generate_v4), primary_key: true column :metadata, :jsonb, default: '{}', index: { type: :gin } String :internal_resource, index: true Integer :lock_version, index: true DateTime :created_at, index: true, default: ::Sequel::CURRENT_TIMESTAMP DateTime :updated_at, index: true end run 'CREATE INDEX orm_resources_metadata_index_pathops ON orm_resources USING gin (metadata jsonb_path_ops)' end down do drop_table :orm_resources run 'DROP EXTENSION "uuid-ossp"' end end
Version data entries
10 entries across 10 versions & 1 rubygems