Class: CreateActsAsFriendableFriendships

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/acts_as_friendable/install/templates/friendships.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/acts_as_friendable/install/templates/friendships.rb', line 2

def change
  create_table :friendships do |t|
    t.integer :user_id
    t.integer :friend_id
    t.boolean :approved

    t.timestamps
  end
end