lib/attached.rb in attached-0.3.2 vs lib/attached.rb in attached-0.3.3

- old
+ new

@@ -8,9 +8,22 @@ def self.included(base) base.extend ClassMethods end + module Definition + 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 + end + + module ClassMethods # Initialize attached options used for communicating between class and instance methods. \ No newline at end of file