This file contains 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
heroku pg:pull HEROKU_POSTGRESQL_CYAN local_database_name --app app_name | |
(Make sure you don't already have a database with that name) | |
Ex: | |
heroku pg:pull HEROKU_POSTGRESQL_CYAN rigos_graphics_development --app rigosgraphics |
This file contains 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
rails g paperclip news_post image |
This file contains 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
gem 'rails_12factor', group: :production |
This file contains 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
ALTER SEQUENCE table_name_id_seq RESTART 500; |
This file contains 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
.parent{ | |
display: table; | |
} | |
.child{ | |
vertical-align: middle; | |
display: table-cell; | |
} |
This file contains 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
User.find_each(&:save) |
This file contains 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
git fetch origin [remote-branch]:[new-local-branch] |
This file contains 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
def participants_export | |
@model_template = @survey.model_template | |
@categories = @model_template.categories.wout_overall | |
@sub_categories = @model_template.sub_categories | |
#Users + Scores | |
if params[:start_date] && params[:end_date] | |
@start_date_searched = params[:start_date].to_s | |
@start_date = Date.parse(@start_date_searched) |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
heroku addons:add pgbackups --app production-app | |
heroku addons:add pgbackups --app staging-app | |
heroku pgbackups:capture --app production-app | |
heroku pgbackups --app production-app | |
heroku pgbackups:restore HEROKU_POSTGRESQL_EXAMPLE_URL `heroku pgbackups:url --app production-app` --app staging-app |
OlderNewer