Search code examples
ruby-on-railsrubydevise

undefined local variable or method `locked_at' for #<User:0x007f28a2101568> Did you mean? lock_access


So I have made a project in ruby on rails for authentication using devise and facebook. While logging in through devise simple sign up I am getting this error of:

undefined local variable or method `locked_at' for # Did you mean? lock_access!

enter image description here


Solution

  • I think locked_at column were not added for users table

    generate migration for adding column in users table

      def change
        add_column :users, :locked_at, :datetime
      end