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

Version Path
stitches-5.0.0 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-5.0.0.RC1 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-4.2.2 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-4.2.1 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-4.2.0 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-4.2.0.RC3 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-4.2.0.RC2 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb
stitches-4.2.0.RC1 spec/fake_app/db/migrate/20210802153119_create_api_clients.rb