OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Thu, 9 Jul 2020 14:55:05 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Thu, 9 Jul 2020 14:55:05 +0000 (23:55 +0900)
phoenix-migrations.md
vim.md
vue.md

index 3b4d539..21e3270 100644 (file)
@@ -49,7 +49,8 @@ create table(:documents) do
   add :body, :text
   add :age, :integer
   add :price, :float
-  add :price, :float, precision: 10, scale: 2
+  add :price, :float
+  add :price, :decimal, precision: 10, scale: 2
   add :published_at, :utc_datetime
   add :group_id, references(:groups)
   add :object, :json
diff --git a/vim.md b/vim.md
index 3ae3612..0553d52 100644 (file)
--- a/vim.md
+++ b/vim.md
@@ -372,7 +372,7 @@ Do these in visual or normal mode.
 | `.`        | Repeat last command                               |
 | `]p`       | Paste under the current indentation level         |
 | ---        | ---                                               |
-| `:ff=unix` | Convert Windows line endings to Unix line endings |
+| `:set ff=unix` | Convert Windows line endings to Unix line endings |
 {: .-shortcuts}
 
 ### Command line
diff --git a/vue.md b/vue.md
index c71d8d2..a2dab72 100644 (file)
--- a/vue.md
+++ b/vue.md
@@ -101,7 +101,6 @@ See: [Directives](https://vuejs.org/v2/api/#Directives)
 #### Arguments can be passed
 ```html
 <button @click="addToCart(product)">...
-}
 ```
 
 #### To prevent default behavior (e.g. page reload)