Add circle posts history support (#18)
* Wip: make web backend * Wip: keep statuses if edit circle * Wip: Add circle history page and record circle posts * Add circle post to history in web ui when post * Add test
This commit is contained in:
parent
0a42f4b7e2
commit
df3b3f4185
19 changed files with 544 additions and 15 deletions
|
@ -20,6 +20,8 @@ class Circle < ApplicationRecord
|
|||
|
||||
has_many :circle_accounts, inverse_of: :circle, dependent: :destroy
|
||||
has_many :accounts, through: :circle_accounts
|
||||
has_many :circle_statuses, inverse_of: :circle, dependent: :destroy
|
||||
has_many :statuses, through: :circle_statuses
|
||||
|
||||
validates :title, presence: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue