Add sections column to alerts
This commit is contained in:
parent
18ffa57d79
commit
fa9e9ff866
2 changed files with 14 additions and 1 deletions
5
db/migrate/20130412012722_add_sections_to_alerts.rb
Normal file
5
db/migrate/20130412012722_add_sections_to_alerts.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddSectionsToAlerts < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :alerts, :sections, :text
|
||||
end
|
||||
end
|
10
db/schema.rb
10
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
|
||||
|
|
Loading…
Reference in a new issue