Sha256: b5920582759b4f34364a774b8e10b5e8e07baaeb47b8584d8a5940322e3fbc2d
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 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 before_create :generate_public_token end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-uploader-0.2.1 | spec/dummy/app/models/asset.rb |