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
--The double column name reference is required | |
ALTER TABLE table_name CHANGE date_column_name date_column_name TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; |
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
#!/usr/bin/env bash | |
#Based off alpas.sh by ashokgelal which is available here https://gist.github.com/ashokgelal/c569e2df7e296378c8becce1c8680f31 | |
#Include this in the root of your project - then on Heroku you can enter `heroku run ./run_prod.sh db:migrate` to run the migrations if the environment you are on is short on space | |
runApp() { | |
MY_PATH=$(dirname "$0") | |
MY_PATH=$( (cd "$MY_PATH" && pwd)) | |
APP_PATH="${MY_PATH}" |