OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Wed, 1 Jul 2020 14:55:06 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Wed, 1 Jul 2020 14:55:06 +0000 (23:55 +0900)
rails-migrations.md
rails-routes.md

index 4d555b2..557a3d9 100644 (file)
@@ -47,7 +47,6 @@ category: Rails
     remove_column :users, :first_name, :string
 
     change_column :users, :first_name, :text
-    change_column :users, :first_name, :text
 
     change_column_default :users, :admin, nil
     change_column_null    :users, :email, false # adds NOT NULL constraint
index 84fc39f..1745ba0 100644 (file)
@@ -5,7 +5,7 @@ category: Rails
 
 ## Multiple resources (`resources`)
 
-    resources :books
+    resources :photos
 
     # PhotosController:
     # index  =>    GET /photos
@@ -17,9 +17,9 @@ category: Rails
     # delete => DELETE /photos/:id
     #
     # Helpers:
-    # new_book_path
-    # book_path(id)
-    # edit_book_path(id)
+    # new_photo_path
+    # photo_path(id)
+    # edit_photo_path(id)
 
 ### Custom actions