1
0
Fork 0

Add sections column to alerts

This commit is contained in:
Andrew Tomaka 2013-04-11 21:30:02 -04:00
parent 18ffa57d79
commit fa9e9ff866
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddSectionsToAlerts < ActiveRecord::Migration
def change
add_column :alerts, :sections, :text
end
end

View File

@ -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