Here is what I tried
rails g migration add_username_to_hrs
bundle exec rake db:migrate
added attr_accessible:username
restarted the server
My add_username_to_hr.rb
class AddUsernameToAuthorize < ActiveRecord::Migration def change add_column :authorizes, :username, :string end end
Mistake
undefined username method for #
Question How to add a username field to my gem?
ruby-on-rails ruby-on-rails-4 devise
bindi bhatt
source share