Sha256: 14a17b0fa47032f4e3bb50587b34bde73d929340927ea4aa0185c2f0763ba8f9

Contents?: true

Size: 251 Bytes

Versions: 1

Compression:

Stored size: 251 Bytes

Contents

require 'active_record'

module Mdg
  class Deed < ActiveRecord::Base
    has_many :timestamps, dependent: :destroy

    validates :content, presence: true, length: { maximum: 140 }
    validates :hour,    presence: true, numericality: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mdg-1.0.1 lib/mdg/deed.rb