Sha256: 396d87930883d0306fa2339c79c76283a1ddb093347c9014ea92e1c6c4192618
Contents?: true
Size: 762 Bytes
Versions: 14
Compression:
Stored size: 762 Bytes
Contents
require 'rails-uploader' class Asset include Mongoid::Document include Mongoid::Timestamps include Uploader::Asset include Sunrise::CarrierWave::Glue include Sunrise::Models::Asset # Columns field :data_file_name, :type => String field :data_content_type, :type => String field :data_file_size, :type => Integer field :width, :type => Integer field :height, :type => Integer field :guid, :type => String field :sort_order, :type => Integer, :default => 0 field :width, :type => Integer field :height, :type => Integer index({:guid => 1}) index({:user_id => 1}) index({:assetable_type => 1, :assetable_id => 1, :type => 1}) # Validations validates_presence_of :data default_scope asc(:sort_order) end
Version data entries
14 entries across 14 versions & 1 rubygems