Sha256: ac6e9da06a68bfca412e7f73406d6a70057b576b9839e26814a574fbd460a227

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

require 'active_record'

class CreateUserMigration < ActiveRecord::Migration[6.1]

  enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubypitaya-3.19.6 ./lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb
rubypitaya-3.19.5 ./lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb
rubypitaya-3.19.4 ./lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb
rubypitaya-3.19.3 ./lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb