Browse Source

Removed broken association

pull/3/head
Adrian Short 14 years ago
parent
commit
d0e54ab882
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/models.rb

+ 2
- 2
lib/models.rb View File

@@ -1,5 +1,5 @@
require 'rubygems' require 'rubygems'
gem "datamapper", "0.9.11"
# gem "datamapper", "0.9.11"
require 'dm-core' require 'dm-core'
require 'dm-validations' require 'dm-validations'
require 'dm-timestamps' require 'dm-timestamps'
@@ -37,7 +37,7 @@ class Directorate
property :name, String, :length => 255, :required => true property :name, String, :length => 255, :required => true
property :slug, String, :length => 255 property :slug, String, :length => 255
has n, :payments, { :through => :services, :order => ['d'] }
# has n, :payments, { :through => :services, :order => ['d'] }
has n, :services, :order => ['name'] has n, :services, :order => ['name']
has n, :suppliers, { :through => :services, :order => ['name'] } has n, :suppliers, { :through => :services, :order => ['name'] }




Loading…
Cancel
Save