How to list the tables and the table structure in Rails console?
In Rails 5:
The tables method has been deprecated:
DEPRECATION WARNING: #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead. (called from irb_binding at (irb):2)