Class: ActiveRecord::ConnectionAdapters::Table
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Table
- Defined in:
- lib/fingerprints/active_record.rb
Instance Method Summary collapse
-
#fingerprints ⇒ Object
Adds fingerprints (created_by and updated_by) columns to the table.
-
#remove_fingerprints ⇒ Object
Removes the fingerprint columns (created_by and updated_by) from the table.
Instance Method Details
#fingerprints ⇒ Object
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_fingerprints ⇒ Object
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 |