Sha256: 8aa348d3aa696b2546ac570e8ea95c8d2bbcc67b2fc2a139a9c41019f53b458f

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

# == Schema Information
#
# Table name: tasks
#
#  id          :integer          not null, primary key
#  name        :string(255)
#  description :text
#  project_id  :integer
#  created_at  :datetime
#  updated_at  :datetime
#

class Task < ActiveRecord::Base
  belongs_to :project, inverse_of: :tasks
  # validates_presence_of :name

  def to_label
    self.description
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
basepack-0.1.0 spec/dummy_app/app/models/task.rb
basepack-0.0.2 spec/dummy_app/app/models/task.rb