summaryrefslogtreecommitdiff
path: root/db/migrate/20140307003709_create_alerts.rb
blob: 68a8e10a633590cfb9664d3d608e58d7b14173fe (plain)
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