Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

table name from rails console

ActiveRecord::Base.connection.tables

ActiveRecord::Base.connection.columns('projects').map(&:name)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #table #rails #console
ADD COMMENT
Topic
Name
2+9 =