Module: Attached::Definition

Defined in:
lib/attached.rb

Instance Method Summary collapse

Instance Method Details

#attachment(*args) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/attached.rb', line 20

def attachment(*args)
  options = args.extract_options!

  args.each do |name|
    column("#{name}_identifier", :string, options)
    column("#{name}_extension", :string, options)
    column("#{name}_size", :integer, options)
  end
end