Module: Ddb::Userstamp::MigrationHelper::InstanceMethods

Defined in:
lib/migration_helper.rb

Instance Method Summary collapse

Instance Method Details

#userstamps(include_deleted_by = false) ⇒ Object



9
10
11
12
13
# File 'lib/migration_helper.rb', line 9

def userstamps(include_deleted_by = false)
  column(Ddb::Userstamp.compatibility_mode ? :created_by : :creator_id, :integer)
  column(Ddb::Userstamp.compatibility_mode ? :updated_by : :updater_id, :integer)
  column(Ddb::Userstamp.compatibility_mode ? :deleted_by : :deleter_id, :integer) if include_deleted_by
end