【发布时间】:2021-11-30 10:40:51
【问题描述】:
有没有办法从rails console 获取表关联?我想直接从控制台检查与特定表的关系,而不是连接到数据库。
【问题讨论】:
-
不清楚你想做什么。
get a table association和check the data related to the specific table是什么意思? -
为了更好的解释,我想从控制台获取特定表的关联(关系)输出。也就是说,看看和其他表有没有关系。
标签: ruby-on-rails rails-activerecord