I was able to extend the existing user model using the following code:
class UpdateUsers < ActiveRecord::Migration def up add_column :users, :your_new_column, :string, :default => '' add_column :users, :your_other_new_column, :string, :default => '' end def down remove_column :users, :your_new_column remove_column :users, :your_other_new_column end end
I also needed to specify the migration file so that it starts with a number, for example. MyPlugin / db / migrates / 001_update_user.rb
source share