Activerecord List Tables

[Solved] Activerecord List Tables | Ruby - Code Explorer | yomemimo.com
Question : activerecord list tables

Answered by : akshay-kakade

>> ActiveRecord::Base.connection.tables
=> ["accounts", "assets", ...]

Source : https://stackoverflow.com/questions/154372/how-to-list-of-all-the-tables-defined-for-the-database-when-using-active-record | Last Update : Mon, 05 Jul 21

Answers related to activerecord list tables

Code Explorer Popular Question For Ruby