How to simplify my Active Record code (I want to filter has_many using join table column)?

前端 未结 0 1219
北海茫月
北海茫月 2021-02-18 17:19

This is my schema

  create_table "duties", force: :cascade do |t|
    t.string "name"
    t.datetime "created_at", precision: 6, nul         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题