Last active
December 15, 2015 21:29
-
-
Save leemour/5326342 to your computer and use it in GitHub Desktop.
Rails/Padrino pretty output of a SQL table Information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts ActiveRecord::Base.connection.execute("PRAGMA table_info('pages')").to_yaml | |
puts ActiveRecord::Base.connection.execute("PRAGMA encoding").to_yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment