https://github.com/realroy/migrator
Golang database migration CLI inspired from Rails
https://github.com/realroy/migrator
database golang
Last synced: 6 months ago
JSON representation
Golang database migration CLI inspired from Rails
- Host: GitHub
- URL: https://github.com/realroy/migrator
- Owner: realroy
- Created: 2020-08-15T20:55:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T23:03:46.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T02:00:21.094Z (about 2 years ago)
- Topics: database, golang
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Migrator
Database migration CLI that inspired from Rails.
## Usage
```
go get github.com/realroy/migrator
```
## Example
### Generate migration file
```
./build/migrator generate CreateNewModel
```
### Run migrate
```
./build/migrator migrate
```