$ docker run --rm -it -v ${PWD}:/usr/src -w /usr/src ruby:2.7 sh -c 'gem install rails:"~> 6.0.3" && rails new --database=postgresql <app_name>'
cd
into project directory
#!/bin/sh | |
# This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
# Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
# Some column types are not handled (e.g blobs). | |
SQLITE_DB_PATH=$1 | |
PG_DB_NAME=$2 | |
PG_USER_NAME=$3 |
## | |
## A stegosaur with a top hat? | |
## | |
$the_cow = <<EOC; | |
$thoughts . . | |
$thoughts / `. .' " | |
$thoughts .---. < > < > .---. | |
$thoughts | \\ \\ - ~ ~ - / / | | |
_____ ..-~ ~-..-~ | |
|CRUFT| \\~~~\\.' `./~~~/ |