$ rails g model User
belongs_to
has_one
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Node struct { | |
| Value int | |
| } |
| #!/bin/bash | |
| ## | |
| # MySQL DB dump to Git commit | |
| # | |
| # Dumps the specified mysql database to the given location and commits it and | |
| # the previous database to the Git repository. | |
| # | |
| # It is assumed you have already setup the Git respository to only be the | |
| # a checkout of the database backup location |