Skip to content

Commit

Permalink
added relation_type and work_type classes. #130
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 13, 2014
1 parent 71a5778 commit a513fae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/relation_type.rb
@@ -0,0 +1,3 @@
class RelationType < ActiveRecord::Base

end
1 change: 1 addition & 0 deletions app/models/work.rb
Expand Up @@ -12,6 +12,7 @@ class Work < ActiveRecord::Base
include Resolvable

belongs_to :publisher, primary_key: :crossref_id
belongs_to :work_type
has_many :retrieval_statuses, :dependent => :destroy
has_many :sources, :through => :retrieval_statuses
has_many :alerts
Expand Down
3 changes: 3 additions & 0 deletions app/models/work_type.rb
@@ -0,0 +1,3 @@
class WorkType < ActiveRecord::Base
has_many :works
end

0 comments on commit a513fae

Please sign in to comment.