Last active
April 20, 2020 16:55
-
-
Save benhickson/572dd12cb9b3bd9fe339e3fc357e9247 to your computer and use it in GitHub Desktop.
https://traversal.ist/how-to-authenticate-anonymous-users-in-rails - create users migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateUsers < ActiveRecord::Migration[6.0] | |
def change | |
create_table :users do |t| | |
t.string :email | |
t.string :display_name | |
t.string :password_digest | |
t.timestamps | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment