Sha256: 6f510bd13b955a0040f53a5c6fff0a1254cf062d7e0c1b1bdb95ea013013762c
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
class CreateAccounts < ActiveRecord::Migration[7.1] def change create_table :accounts do |t| t.string :public_uid, index: { unique: true } t.string :name, null: false t.boolean :personal, null: false, default: false t.timestamps end # Add a optional personal_account reference to users. add_reference :users, :personal_account, foreign_key: { to_table: :accounts }, null: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kiqr-0.1.0.alpha1 | db/migrate/20240325084418_create_accounts.rb |