0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sorceryでのマイグレーションファイルが作成されない

Posted at

問題

なぜかSorceryのサイトの通り下記のように入力してもマイグレーションファイルが生成されない。
>>https://github.com/Sorcery/sorcery/wiki/Simple-Password-Authentication

$ rails g sorcery:install
$ rails g sorcery:install external --only-submodules

解決

GemfileのSorceryに関する記述を一時的に1から2に変更し「bundle install」

1.gem 'sorcery', '~> 0.12.0'
2.gem 'sorcery', github: 'sorcery/sorcery'

2.の状態で先のコマンドを実行するとマイグレーションファイルが生成される。
その後Gemfileを1.の状態に戻す。

教えてください

根本的な問題がよくわかりません。ご存知の方がいらしたら教えてください。
お願いします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?