Class: CreateUserConversations

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/conversations/templates/20120105153800_create_user_conversations.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/conversations/templates/20120105153800_create_user_conversations.rb', line 2

def change
  create_table :user_conversations do |t|
    t.integer :user_id
    t.integer :conversation_id
    t.boolean :deleted
    t.boolean :read

    t.timestamps
  end
end