Explorar el Código

:pencil: add day-7

Jeremy Zheng hace 4 años
padre
commit
db1815c3e1
Se han modificado 2 ficheros con 19 adiciones y 2 borrados
  1. 12 0
      DAY-7.md
  2. 7 2
      README.md

+ 12 - 0
DAY-7.md

@@ -0,0 +1,12 @@
+# BOOTING IN 1-WEEK
+
+## DAY 1
+
+- [Container tooling](docker/)
+- [Dia Diagram Editor](http://dia-installer.de/index.html.en)
+
+## DAY 2
+
+- Database creation & initialization
+- Create a model & migration
+- [Table definition demo](blob/ror/db/migrate/20210804025823_devise_create_users.rb)

+ 7 - 2
README.md

@@ -17,10 +17,15 @@ application up and running.
     ![create database](documents/create-db.png)
   
     ```bash
-    rake db:migrate
+    # Migrate the database to latest
+    rake db:migrate    
+    # Rolls the schema back to the previous version
+    rake db:rollback
+    # Loads the seed data
+    rake db:seed
     ```
 
-- Create a migration
+- Create a model & migration
   
     ```bash
     rails generate model Item --no-fixture --no-test-framework