Class: ActiveRecord::ConnectionAdapters::TableDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/fingerprints/active_record.rb

Instance Method Summary collapse

Instance Method Details

#fingerprints(*args) ⇒ Object

Appends :integer columns :created_by and :updated_by to the table.



6
7
8
9
10
# File 'lib/fingerprints/active_record.rb', line 6

def fingerprints(*args)
  options = args.extract_options!
  column(:created_by, :integer, options)
  column(:updated_by, :integer, options)
end