Browse Source

:pencil: add db migration demo

Jeremy Zheng 4 years ago
parent
commit
ffb518086d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      README.md

+ 7 - 0
README.md

@@ -20,6 +20,13 @@ application up and running.
     rake db:migrate
     ```
 
+- Create a migration
+  
+    ```bash
+    rails generate model Item --no-fixture --no-test-framework
+    rails generate migration AddHiToUsers
+    ```
+
 - How to run the test suite
 
 - Services (job queues, cache servers, search engines, etc.)