Class: CreateConversations

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/generators/conversations/templates/20120105153739_create_conversations.rb', line 2

def change
  create_table :conversations do |t|
    t.string :subject

    t.timestamps
  end
end