Class: ActiveRecord::ConnectionAdapters::Table

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

Instance Method Summary collapse

Instance Method Details

#fingerprintsObject

Adds fingerprints (created_by and updated_by) columns to the table. See SchemaStatements#add_fingerprints

Example
t.fingerprints


17
18
19
# File 'lib/fingerprints/active_record.rb', line 17

def fingerprints
  @base.add_fingerprints(@table_name)
end

#remove_fingerprintsObject

Removes the fingerprint columns (created_by and updated_by) from the table.

Example
t.remove_fingerprints


25
26
27
# File 'lib/fingerprints/active_record.rb', line 25

def remove_fingerprints
  @base.remove_fingerprints(@table_name)
end