-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the grouping model and replace it with the generic relationshi…
…p model git-svn-id: svn+ssh://rubyforge.org/var/svn/biocatalogue/trunk@401 1acaf488-1b9d-4964-8077-0a2fdb83ef00
- Loading branch information
ebontane
committed
Jan 30, 2009
1 parent
66f8bfd
commit e7ae6da
Showing
7 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Relationship < ActiveRecord::Base | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class CreateRelationships < ActiveRecord::Migration | ||
def self.up | ||
create_table :relationships do |t| | ||
t.string :subject_type, :null => false | ||
t.integer :subject_id , :null => false | ||
t.string :predicate , :null => false | ||
t.string :object_type , :null => false | ||
t.integer :object_id , :null => false | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :relationships | ||
end | ||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters