Sha256: c37b1d6253f6785e5001985bbc23f3a048208cab668529374234bb154258720e
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
<% if Rails::VERSION::MAJOR >= 5 %> class CreateApiClients < ActiveRecord::Migration[<%= Rails::VERSION::MAJOR %>.<%= Rails::VERSION::MINOR %>] <% else %> class CreateApiClients < ActiveRecord::Migration <% end %> 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 t.column :disabled_at, "timestamp with time zone", null: true end add_index :api_clients, [:name] add_index :api_clients, [:key], unique: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stitches-4.2.0.RC2 | lib/stitches/generator_files/db/migrate/create_api_clients.rb |
stitches-4.2.0.RC1 | lib/stitches/generator_files/db/migrate/create_api_clients.rb |