Sha256: 5f267707448275195f00c71b43a8aae08b2b9800ae47407e7175f37c47e289dc

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

class CreateModelsUsers < ActiveRecord::Migration[7.2]
  def change
    create_table :users, id: :uuid do |t|
      t.uuid :account_id, null: false
      t.string :full_name, null: false
      t.string :role, null: false

      t.timestamps
    end
    add_index :users, :full_name
    add_index :users, :role
    add_index :users, :account_id
    add_index :users, :created_at
    add_index :users, :updated_at
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sun-sword-0.0.5 lib/generators/sun_sword/templates_frontend/db/migrate/20241117044142_create_models_users.rb
sun-sword-0.0.4 lib/generators/sun_sword/templates_frontend/db/migrate/20241117044142_create_models_users.rb
sun-sword-0.0.3 lib/generators/sun_sword/templates_frontend/db/migrate/20241117044142_create_models_users.rb
sun-sword-0.0.2 lib/generators/sun_sword/templates_frontend/db/migrate/20241117044142_create_models_users.rb