Class: CreateUserMigration

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



7
8
9
10
11
12
# File 'lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb', line 7

def change
  create_table :users do |t|
    t.uuid :public_id, default: 'uuid_generate_v1()', null: false, index: { unique: true }
    t.timestamps
  end
end