dev_forum
cxt 6 years ago
parent 61da612ac2
commit 8b56367344

@ -1,7 +1,9 @@
class Memo < ApplicationRecord
include Searchable::Memo
has_many :memo_tag_repertoires, :dependent => :destroy
belongs_to :forum, touch: true
has_many :memo_tag_repertoires, dependent: :destroy
has_many :tag_repertoires, :through => :memo_tag_repertoires
has_many :praise_tread, as: :praise_tread_object, dependent: :destroy

@ -1,8 +0,0 @@
class CreateForums < ActiveRecord::Migration[5.2]
def change
create_table :forums do |t|
t.timestamps
end
end
end
Loading…
Cancel
Save