Skip to content

Instantly share code, notes, and snippets.

@LeonidFilbert
Forked from harssh/table_list.rb
Created February 9, 2018 15:48
Show Gist options
  • Save LeonidFilbert/b5b5a19bdd70981854d66f9b5029733b to your computer and use it in GitHub Desktop.
Save LeonidFilbert/b5b5a19bdd70981854d66f9b5029733b to your computer and use it in GitHub Desktop.
List all tables in rails app using console
# This command will list all table in a rails app in rails console
ActiveRecord::Base.connection.tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment