Sha256: 462c3a939b6447b108289de1e47280b1a81a708c2de78a35a476e6b2816a1c78
Contents?: true
Size: 691 Bytes
Versions: 8
Compression:
Stored size: 691 Bytes
Contents
class CreateProfiles < ActiveRecord::Migration::Current include ActiveRecord::Concerns::Base # Up def up setup_uuid create_table table, uuid do |t| # => General t.references :user, { references: :user }.merge!(uuid(:type)) # => Should be used to create custom references but always adds "_id" to name t.string :slug t.string :name t.integer :role, default: 0 # => Extras t.boolean :public, default: 0 t.boolean :is_destroyable # => Timestamps t.timestamps end end ######################################### ######################################### end
Version data entries
8 entries across 8 versions & 1 rubygems