module Paperclip::Schema::TableDefinition
def attachment(*attachment_names)
def attachment(*attachment_names) options = attachment_names.extract_options! attachment_names.each do |attachment_name| COLUMNS.each_pair do |column_name, column_type| column_options = options.merge(options[column_name.to_sym] || {}) column("#{attachment_name}_#{column_name}", column_type, column_options) end end end
def has_attached_file(*attachment_names)
def has_attached_file(*attachment_names) ActiveSupport::Deprecation.warn "Method `t.has_attached_file` in the migration has been deprecated and will be replaced by `t.attachment`." attachment(*attachment_names) end