Skip to content

Instantly share code, notes, and snippets.

@keioka
Last active August 29, 2015 14:06
Show Gist options
  • Save keioka/a2cb15784ed37eb27103 to your computer and use it in GitHub Desktop.
Save keioka/a2cb15784ed37eb27103 to your computer and use it in GitHub Desktop.
RoR Tutorialでpassword_digestのエラーが出た場合の確認項目 ref: http://qiita.com/koka0828/items/4631822d17af1d6a1a5c
rails generate migration \
add_password_digest_to_users password_digest:string
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.string :email
t.timestamps
end
end
end
$ bundle exec rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment