Module: Paperclip::Schema::TableDefinition
- Includes:
- DeprecationHelper
- Defined in:
- lib/paperclip/schema.rb
Instance Method Summary collapse
Instance Method Details
#attachment(*attachment_names) ⇒ Object
78 79 80 81 82 83 84 85 86 |
# File 'lib/paperclip/schema.rb', line 78 def (*) = . .each do || COLUMNS.each_pair do |column_name, column_type| = Schema.(, column_name) column("#{}_#{column_name}", column_type, **) end end end |
#has_attached_file(*attachment_names) ⇒ Object
88 89 90 91 |
# File 'lib/paperclip/schema.rb', line 88 def has_attached_file(*) deprecation_warn "Method `t.has_attached_file` in the migration has been deprecated and will be replaced by `t.attachment`." (*) end |