Sha256: dfc376fa48d668f496e80300a8265fde1fa9e5e42fed0ba8b245b4b94ec15380
Contents?: true
Size: 707 Bytes
Versions: 10
Compression:
Stored size: 707 Bytes
Contents
class Asset include Mongoid::Document include Mongoid::Timestamps 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
10 entries across 10 versions & 1 rubygems