foalfetch/app/models/chapter.rb

23 lines
583 B
Ruby
Raw Normal View History

2024-04-04 10:21:23 +02:00
# frozen_string_literal: true
2024-04-03 11:23:50 +02:00
# == Schema Information
#
# Table name: chapters
#
# id :bigint not null, primary key
# body :text
# date_modified :datetime
# date_published :datetime not null
# num_views :integer default(0), not null
# num_words :integer
# number :integer default(1), not null
# title :text not null
# story_id :bigint not null
#
# Indexes
#
# index_chapters_on_story_id (story_id)
#
class Chapter < ApplicationRecord
belongs_to :story
end