Skip to content
raw1z edited this page Mar 6, 2012 · 2 revisions

If you are using ActiveRecord, you need to create a new table for the friendships. Amistad has a generator which creates a migration for this task. Run the following command:

rails generate amistad:install

Don't forget to migrate your database:

rake db:migrate

Then activate amistad in your model:

class User < ActiveRecord::Base  
  include Amistad::FriendModel
end