This repository is used to create the sample data used in my presentation [In Japanese].
Set the following environment variables:
Name | Default |
---|---|
MYSQL_DATABASE | railsdm2018 |
MYSQL_USER | root |
MYSQL_PASSWORD | |
MYSQL_HOST | localhost |
MYSQL_PORT | 3306 |
./bin/setup
rake db:insert
% ./bin/console
[1] pry(main)> User.count
User Count (0.8ms) SELECT COUNT(*) FROM `users`
=> 100