forked from emrekutlu/amistad
-
Notifications
You must be signed in to change notification settings - Fork 0
ActiveRecord Setup
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:installDon't forget to migrate your database:
rake db:migrateThen activate amistad in your model:
class User < ActiveRecord::Base
include Amistad::FriendModel
end