Sha256: f37adb9e59f8f0cd1c7d63a7638bad444064afccaca15dd4f8df46178146404a

Contents?: true

Size: 570 Bytes

Versions: 10

Compression:

Stored size: 570 Bytes

Contents

# A set of models and associations we can use in our specs to test
# basic database columns and also relationships

# See Companion migration spec/db/migrate

class Project < ActiveRecord::Base

  has_one  :owner

  has_many :milestones

  has_many :loader_releases
  has_many :versions, :through => :loader_releases


  #has_many :release_versions, :through => :loader_releases, :source => :versions

  has_and_belongs_to_many :categories

  attr_accessible  :value_as_string, :value_as_boolean, :value_as_double
  
  def multiply
    10 * value_as_double
  end
  
end

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
datashift-0.11.1 spec/rails_sandbox/app/models/project.rb
datashift-0.11.1 spec/fixtures/models/project.rb
datashift-0.11.0 spec/fixtures/models/project.rb
datashift-0.11.0 spec/rails_sandbox/app/models/project.rb
datashift-0.10.2 spec/rails_sandbox/app/models/project.rb
datashift-0.10.2 spec/fixtures/models/project.rb
datashift-0.10.1 spec/rails_sandbox/app/models/project.rb
datashift-0.10.1 spec/fixtures/models/project.rb
datashift-0.10.0 spec/fixtures/models/project.rb
datashift-0.10.0 spec/rails_sandbox/app/models/project.rb