13 lines
239 B
PHP
13 lines
239 B
PHP
|
<?php
|
||
|
class PostVote extends Rails\ActiveRecord\Base
|
||
|
{
|
||
|
protected function associations()
|
||
|
{
|
||
|
return array(
|
||
|
'belongs_to' => array(
|
||
|
'post',
|
||
|
'user'
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|