Skip to content
Snippets Groups Projects
Verified Commit 1ece7f1c authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Pridane relace

parent 07961fbe
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,9 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key('id');
__PACKAGE__->has_many(
posts => 'CF::Schema::Result::Post',
{ 'foreign.program_entry_id' => 'self.id', },
);
1;
......@@ -31,4 +31,9 @@ __PACKAGE__->add_unique_constraint(
'uuid' => [qw(uuid)]
);
__PACKAGE__->has_many(
posts => 'CF::Schema::Result::Post',
{ 'foreign.user_id' => 'self.id', },
);
1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment