Module: Paperclip::Schema::TableDefinition
- Defined in:
- lib/paperclip/schema.rb
Instance Method Summary collapse
Instance Method Details
#attachment(*attachment_names) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/paperclip/schema.rb', line 53 def (*) = . .each do || COLUMNS.each_pair do |column_name, column_type| = .merge([column_name.to_sym] || {}) column("#{}_#{column_name}", column_type, **) end end end |
#has_attached_file(*attachment_names) ⇒ Object
63 64 65 66 |
# File 'lib/paperclip/schema.rb', line 63 def has_attached_file(*) ActiveSupport::Deprecation.warn "Method `t.has_attached_file` in the migration has been deprecated and will be replaced by `t.attachment`." (*) end |