Class: ActiveRecord::ConnectionAdapters::Table
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Table
- Defined in:
- lib/ar-audit-tracer.rb
Instance Method Summary collapse
-
#authorstamps(type = :string, *args) ⇒ Object
Adds author (created_by and updated_by) columns to the table ===== Example t.authors.
-
#remove_authorstamps ⇒ Object
Removes the author columns (created_by and updated_by) from the table.
Instance Method Details
#authorstamps(type = :string, *args) ⇒ Object
Adds author (created_by and updated_by) columns to the table
Example
t.
51 52 53 54 |
# File 'lib/ar-audit-tracer.rb', line 51 def (type=:string, *args) = {:null => false}.merge(args.) @base.(@table_name, type, ) end |
#remove_authorstamps ⇒ Object
Removes the author columns (created_by and updated_by) from the table.
Example
t.
59 60 61 |
# File 'lib/ar-audit-tracer.rb', line 59 def @base.(@table_name) end |