diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-02-09 13:18:50 +0100 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-02-09 13:18:50 +0100 |
| commit | bb8b82e0c7e2fefca3f66e930db59b57e51312e4 (patch) | |
| tree | 2de6a2613fbc2f2c57fdcf0c029c4bba6e81de42 /lib/githubexplorer/Schema/Result/Repositories.pm | |
| parent | fetch repo (diff) | |
| download | github-explorer-bb8b82e0c7e2fefca3f66e930db59b57e51312e4.tar.gz | |
add new tables
Diffstat (limited to 'lib/githubexplorer/Schema/Result/Repositories.pm')
| -rw-r--r-- | lib/githubexplorer/Schema/Result/Repositories.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/githubexplorer/Schema/Result/Repositories.pm b/lib/githubexplorer/Schema/Result/Repositories.pm index 2bd7136..58c0e51 100644 --- a/lib/githubexplorer/Schema/Result/Repositories.pm +++ b/lib/githubexplorer/Schema/Result/Repositories.pm @@ -17,8 +17,12 @@ __PACKAGE__->add_columns( ); __PACKAGE__->set_primary_key('id'); + __PACKAGE__->belongs_to( 'id_profile', 'githubexplorer::Schema::Result::Profiles' ); +__PACKAGE__->has_many( 'get_languages', + 'githubexplorer::Schema::Result::RepoLang', 'language' ); + __PACKAGE__->add_unique_constraint( [qw/name id_profile/] ); 1; |
