From 04e8bf42528e9825d43e83e7621685a1c72c368e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ece=20=C4=B0layda=20Yenmez?= <33802675+eceyenmez@users.noreply.github.com> Date: Wed, 19 Sep 2018 15:53:23 +0300 Subject: [PATCH] comment https://github.com/Sorcery/sorcery/issues/119 Sorcery does not generate migration file with ruby 2.5.1, but it works fine with 2.5.0 --- source/projects/blogger.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/projects/blogger.markdown b/source/projects/blogger.markdown index f21d2539f..e6356f2db 100644 --- a/source/projects/blogger.markdown +++ b/source/projects/blogger.markdown @@ -2155,6 +2155,9 @@ generate model Author --skip-migration create db/migrate/20120210184116_sorcery_core.rb {% endterminal %} +NOTE: create db/migrate/20120210184116_sorcery_core.rb does not created automatically if your ruby version is 2.5.1, but it works with ruby version 2.5.0. I haven't tried adding it manually instead I have changed my ruby version and did bundle install again it was working but my db is gone. I tought you might want to know this :) + + Let's look at the SorceryCore migration that the generator created before we migrate the database. If you wanted your User models to have any additional information (like "department\_name" or "favorite\_color") you could add columns for that, or you could create an additional migration at this point to add those fields. For this tutorial, you will need to add the username column to the Author model. To do that, open the migration file `*_sorcery_core.rb` file under `db/migrate` and make sure your file looks like this: