Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comment #1250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

comment #1250

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/projects/blogger.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down