https://github.com/abicky/sample-data-railsdm-2018
Sample data of my presentation at Rails Developers Meetup 2018
https://github.com/abicky/sample-data-railsdm-2018
Last synced: about 1 year ago
JSON representation
Sample data of my presentation at Rails Developers Meetup 2018
- Host: GitHub
- URL: https://github.com/abicky/sample-data-railsdm-2018
- Owner: abicky
- Created: 2018-03-25T00:30:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T17:58:01.000Z (about 4 years ago)
- Last Synced: 2025-04-12T06:37:58.308Z (about 1 year ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample data of my presentation at Rails Developers Meetup 2018
This repository is used to create the sample data used in [my presentation](https://abicky.net/2018/03/25/141353/) [In Japanese].
## ER Diagram

## Prerequisites
Set the following environment variables:
Name | Default
-----|----------
MYSQL_DATABASE | railsdm2018
MYSQL_USER | root
MYSQL_PASSWORD |
MYSQL_HOST | localhost
MYSQL_PORT | 3306
## Setup tables
```
./bin/setup
```
## Insert sample data
```
rake db:insert
```
## Use sample models
```
% ./bin/console
[1] pry(main)> User.count
User Count (0.8ms) SELECT COUNT(*) FROM `users`
=> 100
```