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
| source 'https://rubygems.org' | |
| gem 'dashing' | |
| ## Remove this if you don't need a twitter widget. | |
| gem 'twitter', '>= 5.9.0' | |
| gem 'activeresource' | |
| gem 'newrelic_api' |
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
| # put this in your staging.rb file. Obviously you'll need more config than this it's just an example. | |
| Rails.application.configure do | |
| config.action_mailer.preview_path ||= defined?(Rails.root) ? "#{Rails.root}/test/mailers/previews" : nil | |
| config.autoload_paths += [config.action_mailer.preview_path] | |
| routes.append do | |
| get '/rails/mailers' => "rails/mailers#index" | |
| get '/rails/mailers/*path' => "rails/mailers#preview" | |
| end |
distinct column -> For each row returned, return only the unique members of a set.
Think of it as for each row in a projection, concatenate all the column values and return only the strings that are unique.
test_db=# SELECT DISTINCT parent_id, child_id, id FROM test.foo_table ORDER BY parent_id, child_id, id LIMIT 10;
parent_id | child_id | id
-----------+------------+-----------------------------
1000040 | 103 | 1000040|2645405726|0001|103
OlderNewer


