class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
      t.integer :request_id, null: false
      t.string  :content, null: false, limit: 140
      t.integer :sender, null: false
    end
  end
end

class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
      t.integer :request_id, null: false
      t.string  :content, null: false, limit: 140
      t.integer :sender_id, null: false
    end
  end
end

Fix bug in the messages migration.
Fix bug in the messages migration.

The message must be posted by a user. The attribute must therefore be
:sender_id, not :sender.
