📜  来自 rails 控制台的表名 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:49.659000             🧑  作者: Mango

代码示例1
ActiveRecord::Base.connection.tables

ActiveRecord::Base.connection.columns('projects').map(&:name)