diff --git a/db/migrate/20130412012722_add_sections_to_alerts.rb b/db/migrate/20130412012722_add_sections_to_alerts.rb new file mode 100644 index 0000000..b2c157c --- /dev/null +++ b/db/migrate/20130412012722_add_sections_to_alerts.rb @@ -0,0 +1,5 @@ +class AddSectionsToAlerts < ActiveRecord::Migration + def change + add_column :alerts, :sections, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 1eed245..5c80be9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130407102854) do +ActiveRecord::Schema.define(:version => 20130412012722) do create_table "alerts", :force => true do |t| t.integer "user_id" @@ -21,6 +21,7 @@ ActiveRecord::Schema.define(:version => 20130407102854) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "semester" + t.text "sections" end create_table "roles", :force => true do |t| @@ -34,6 +35,13 @@ ActiveRecord::Schema.define(:version => 20130407102854) do add_index "roles", ["name", "resource_type", "resource_id"], :name => "index_roles_on_name_and_resource_type_and_resource_id" add_index "roles", ["name"], :name => "index_roles_on_name" + create_table "sections", :force => true do |t| + t.integer "alert_id" + t.string "section" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "users", :force => true do |t| t.string "email", :default => "", :null => false t.string "encrypted_password", :default => "", :null => false