public function down() { $this->dropTable(Vote::tableName()); }
/** * @return \yii\db\ActiveQuery */ public function getVotes() { return $this->hasMany(Vote::className(), ['answer_id' => 'id'])->via('answers'); }