1 2 3 4 5 6 7 8 9 10
class CreateAlerts < ActiveRecord::Migration def change create_table :alerts do |t| t.references :author, index: true t.text :message t.timestamps end end end