Teh Social Netswork!
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name VARCHAR(10) NOT NULL
);
INSERT into users VALUES
| #/config/initializers/paperclip.rb | |
| require 'paperclip/geometry_detector_factory' | |
| require 'paperclip/thumbnail' | |
| # HACK: Monkey patch to remove `[0]` from the end of filename. | |
| # Actual until https://github.com/thoughtbot/paperclip/issues/2223 | |
| # rubocop:disable all | |
| module Paperclip | |
| class GeometryDetector | |
| private |
Teh Social Netswork!
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name VARCHAR(10) NOT NULL
);
INSERT into users VALUES
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |