Sha256: 512100b31ada4b2ea74768009f17193095027c536e6722cb0a385257125588d3
Contents?: true
Size: 452 Bytes
Versions: 8
Compression:
Stored size: 452 Bytes
Contents
class CreateApiClients < ActiveRecord::Migration[6.1] def change create_table :api_clients do |t| t.string :name, null: false t.column :key, "uuid default uuid_generate_v4()", null: false t.column :enabled, :bool, null: false, default: true t.column :created_at, "timestamp with time zone default now()", null: false end add_index :api_clients, [:name] add_index :api_clients, [:key], unique: true end end
Version data entries
8 entries across 8 versions & 1 rubygems