增加判断评分是不是老师评分的列

This commit is contained in:
sw 2014-12-29 10:58:45 +08:00
parent afbcc3f8d3
commit fa36e6d2b0
2 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,5 @@
class AddColumToSeemsRateableRates < ActiveRecord::Migration
def change
add_column :seems_rateable_rates, :is_teacher_score, :integer, default: 0
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 => 20141210070327) do
ActiveRecord::Schema.define(:version => 20141229025519) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
@ -984,6 +984,7 @@ ActiveRecord::Schema.define(:version => 20141210070327) do
t.string "dimension"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "is_teacher_score", :default => 0
end
create_table "settings", :force => true do |t|