Sha256: e8db351d50c9a361d4822b459b0b6a04e640b289420406cbc69b53d6070fc147

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

module Attached

  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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
attached-1.0.7 lib/attached/definition.rb
attached-1.0.6 lib/attached/definition.rb
attached-1.0.5 lib/attached/definition.rb