protected function create(Blueprint $table) { $table->create(); $table->integer('user_id')->unsigned(); $table->integer('topic_id')->unsigned(); $table->primary(array('user_id', 'topic_id')); }