Module: Attached::Definition

Defined in:
lib/attached.rb

Instance Method Summary collapse

Instance Method Details

#attachment(*args) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/attached.rb', line 14

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