class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
      t.string :name,        null: false, limit: 100
      t.string :email,       null: false, limit: 100
      t.string :title,       null: false, limit: 100
      t.text   :body,        null: false
      t.integer :message_id, null: false, default: 0
      t.timestamps
    end
  end
end
