Sha256: dca643a65959eb12c8d6a71ae67daa4d8cf39a38259242e805a3ee036b80d29b

Contents?: true

Size: 262 Bytes

Versions: 4

Compression:

Stored size: 262 Bytes

Contents

class CreateModelsAccounts < ActiveRecord::Migration[7.2]
  def change
    create_table :accounts, id: :uuid do |t|
      t.string :name, null: false

      t.timestamps
    end
    add_index :accounts, :created_at
    add_index :accounts, :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/20241117043154_create_models_accounts.rb
sun-sword-0.0.4 lib/generators/sun_sword/templates_frontend/db/migrate/20241117043154_create_models_accounts.rb
sun-sword-0.0.3 lib/generators/sun_sword/templates_frontend/db/migrate/20241117043154_create_models_accounts.rb
sun-sword-0.0.2 lib/generators/sun_sword/templates_frontend/db/migrate/20241117043154_create_models_accounts.rb