Module: Uuidable

Defined in:
lib/uuidable.rb,
lib/uuidable/version.rb,
lib/uuidable/migration.rb,
lib/uuidable/active_record.rb,
lib/uuidable/v1_model_migration.rb,
lib/uuidable/v1_migration_helpers.rb

Overview

rubocop:disable all

Defined Under Namespace

Modules: ActiveRecord, Migration, TableDefinition, V1MigrationHelpers, V1ModelMigration

Constant Summary collapse

VERSION =
'1.0.5'
COLUMN_NAME =
:uuid
COLUMN_TYPE =
:binary
COLUMN_OPTIONS =
{ limit: 16, null: false }.freeze
INDEX_OPTIONS =
{ unique: true }.freeze

Class Method Summary collapse

Class Method Details

.generate_uuidObject



13
14
15
# File 'lib/uuidable.rb', line 13

def generate_uuid
  SecureRandom.uuid
end