Sha256: 405f8c38854e9e811af270b0effaccdc1b53ee3ea5363e7a4586ab9165b23d35
Contents?: true
Size: 730 Bytes
Versions: 3
Compression:
Stored size: 730 Bytes
Contents
class MongoidFieldTest include Mongoid::Document field :name, :type => String field :title, :type => String field :subject, :type => String field :description, :type => String field :short_text, :type => String field :array_field, :type => Array field :big_decimal_field, :type => BigDecimal field :boolean_field, :type => Boolean field :bson_object_id_field, :type => BSON::ObjectId field :date_field, :type => Date field :date_time_field, :type => DateTime field :float_field, :type => Float field :hash_field, :type => Hash field :integer_field, :type => Integer field :time_field, :type => Time field :object_field, :type => Object validates :short_text, :length => {:maximum => 255} end
Version data entries
3 entries across 3 versions & 2 rubygems