Use the command line switch option -e to input the query and > to redirect the output to a file:

Best results in other decks

When you want to filter records in a model where a string column roughly matches a given term, you can...

Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...

Search in all decks