My::Schema::Topic->has_many(boards => 'My::Schema::Board', 'board_id'); My::Schema::Board->belongs_to(topic => 'My::Schema::Topic', 'topic_id');