删除了courses表中的school列。

重新设计下表= =
This commit is contained in:
Wen 2014-03-19 17:36:38 +08:00
parent 3c0f41a64c
commit bfec67a446
2 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,9 @@
class RemoveSchoolFromCourses < ActiveRecord::Migration
def up
remove_column :courses, :school
end
def down
add_column :courses, :school, :string
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20140318021747) do ActiveRecord::Schema.define(:version => 20140319092720) do
create_table "activities", :force => true do |t| create_table "activities", :force => true do |t|
t.integer "act_id", :null => false t.integer "act_id", :null => false
@ -173,7 +173,6 @@ ActiveRecord::Schema.define(:version => 20140318021747) do
t.string "setup_time" t.string "setup_time"
t.string "endup_time" t.string "endup_time"
t.string "class_period" t.string "class_period"
t.string "school"
end end
create_table "custom_fields", :force => true do |t| create_table "custom_fields", :force => true do |t|
@ -601,7 +600,6 @@ ActiveRecord::Schema.define(:version => 20140318021747) do
create_table "schools", :force => true do |t| create_table "schools", :force => true do |t|
t.string "name" t.string "name"
t.string "province" t.string "province"
t.string "city"
end end
create_table "seems_rateable_cached_ratings", :force => true do |t| create_table "seems_rateable_cached_ratings", :force => true do |t|