janko / rodauth-rails

Rails integration for Rodauth authentication framework
https://github.com/jeremyevans/rodauth
MIT License
584 stars 40 forks source link

undefined method `create_database_authentication_functions' for Rodauth:Module #20

Closed cj closed 3 years ago

cj commented 3 years ago

Hi,

I just tried rodauth-rails 0.7 with the a clean install of rails 6.1 and followed the setup instructions but ran into this error when enabling use_database_authentication_functions? true, I even tried adding require 'rodauth' to the migration file:

undefined method `create_database_authentication_functions' for Rodauth:Module
/app-template/db/migrate/20201210212807_create_rodauth_database_functions.rb:5:in `up'
janko commented 3 years ago

You need to require "rodauth/migrations" for these methods to be available. I missed that when writing the docs, updated the README now.