Class: CreateMessages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateMessages
- Defined in:
- lib/generators/conversations/templates/20120105153812_create_messages.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/conversations/templates/20120105153812_create_messages.rb', line 2 def change create_table :messages do |t| t.integer :user_id t.integer :conversation_id t.text :body t. end end |