Sha256: 90b6f7f69364e18c584bb710c759378dfdb7bc8eb57aedabc1b06c391534eb5b

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

# == Schema Information
#
# Table name: assets
#
#  id                :integer(4)      not null, primary key
#  data_file_name    :string(255)     not null
#  data_content_type :string(255)
#  data_file_size    :integer(4)
#  assetable_id      :integer(4)      not null
#  assetable_type    :string(25)      not null
#  type              :string(25)
#  guid              :string(10)
#  locale            :integer(1)      default(0)
#  user_id           :integer(4)
#  created_at        :datetime
#  updated_at        :datetime
#  duration          :float           default(0.0)
#  resolution_id     :integer(1)      default(0)
#
# Indexes
#
#  index_assets_on_assetable_type_and_type_and_assetable_id  (assetable_type,type,assetable_id)
#  index_assets_on_assetable_type_and_assetable_id           (assetable_type,assetable_id)
#  index_assets_on_user_id                                   (user_id)
#

class AttachmentFile < Asset
  sunrise_uploader AttachmentFileUploader
  
  validates_filesize_of :data, :maximum => 100.megabytes.to_i
end

Version data entries

6 entries across 4 versions & 2 rubygems

Version Path
sunrise-core-0.2.2 lib/generators/sunrise/templates/models/defaults/attachment_file.rb
sunrise-core-0.2.1 lib/generators/sunrise/templates/models/defaults/attachment_file.rb
sunrise-core-0.2.1 spec/tmp/app/models/defaults/attachment_file.rb
sunrise-locales-0.1.0 spec/dummy/app/models/defaults/attachment_file.rb
sunrise-core-0.2.0 lib/generators/sunrise/templates/models/defaults/attachment_file.rb
sunrise-core-0.2.0 spec/tmp/app/models/defaults/attachment_file.rb