-
Initialize your project folder:
git init -
Create your project files with a ruby image:
docker run -it -v .:/rails/<app_name> -w /rails/<app_name> ruby:latest /bin/bash gem install rails rails new . exit
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
| Rails scaffolding types | |
| These types are valid since Rails version 2: | |
| string | |
| text (long text, up to 64k, often used for text areas) | |
| datetime | |
| date | |
| integer | |
| binary | |
| boolean |