1
0
Fork 0
MSU-Course-Alerter/db/migrate/20130531033439_recreate_alerts.rb

19 lines
315 B
Ruby
Raw Permalink Normal View History

class RecreateAlerts < ActiveRecord::Migration
def up
create_table :alerts do |t|
t.integer :user_id
t.string :department
t.string :course
t.string :semester
t.text :sections
t.boolean :alerted
t.timestamps
end
end
def down
drop_table :alerts
end
end