Sha256: 6128eca2f9df06cfee4ef0e79b0c09278dd29425870f34f66df370f8cb9b917a

Contents?: true

Size: 817 Bytes

Versions: 36

Compression:

Stored size: 817 Bytes

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)
#  user_id           :integer(4)
#  sort_order        :integer(4)      default(0)
#  created_at        :datetime
#  updated_at        :datetime
#
# Indexes
#
#  index_assets_on_assetable_type_and_assetable_id           (assetable_type,assetable_id)
#  index_assets_on_user_id                                   (user_id)
#
class Asset < ActiveRecord::Base
  include Uploader::Asset
  
  belongs_to :assetable, :polymorphic => true
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
glebtv-rails-uploader-0.12.0 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.11.1 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.11.0 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.10.1 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.10.0 spec/dummy/app/models/asset.rb
rails-uploader-0.2.7 spec/dummy/app/models/asset.rb
rails-uploader-0.2.6 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.9.0 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.8.0 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.7.1 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.7.0 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.6.1 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.6.0 spec/dummy/app/models/asset.rb
rails-uploader-0.2.5 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.5.1 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.5.0 spec/dummy/app/models/asset.rb
rails-uploader-0.2.4 spec/dummy/app/models/asset.rb
rails-uploader-0.2.3 spec/dummy/app/models/asset.rb
glebtv-rails-uploader-0.3.0 spec/dummy/app/models/asset.rb
rails-uploader-0.2.2 spec/dummy/app/models/asset.rb