Module: FakePipe::Commenter
- Defined in:
- lib/fake_pipe/commenter.rb
Overview
Provides helper migration method to set a valid fake_pipe comment. Currently this only supports the follwing DB adapter types:
postgres
To support more implement aa private ‘execute_comment_<dialect>` method.
Instance Method Summary collapse
-
#anonymize_comment(table, column, mutator) ⇒ Object
Generates an fake_pipe comment for the give table and column.
Instance Method Details
#anonymize_comment(table, column, mutator) ⇒ Object
Generates an fake_pipe comment for the give table and column. This is uses ‘reversible` so it should be safe to use within a `change` style migration.
15 16 17 18 |
# File 'lib/fake_pipe/commenter.rb', line 15 def anonymize_comment(table, column, mutator) validate_mutator!(mutator) comment_updater.call(table: table, column: column, mutator: mutator) end |