Sha256: 1cb16bf99fb61fde1148264d64692a03fbdefdf7b963dc738e49ca1e67f78c74

Contents?: true

Size: 317 Bytes

Versions: 5

Compression:

Stored size: 317 Bytes

Contents

Sequel.migration do
  change do
    create_table(:<%= table_name %>) do
      uuid         :uuid, default: Sequel.function(:uuid_generate_v4), primary_key: true
      timestamptz  :created_at, default: Sequel.function(:now), null: false
      timestamptz  :updated_at
      timestamptz  :deleted_at
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pliny-0.0.3 lib/pliny/templates/model_migration.erb
pliny-0.0.1 lib/pliny/templates/model_migration.erb
pliny-0.0.1.pre3 lib/pliny/templates/model_migration.erb
pliny-0.0.1.pre2 lib/pliny/templates/model_migration.erb
pliny-0.0.1.pre lib/pliny/templates/model_migration.erb