增加判断评分是不是老师评分的列
This commit is contained in:
parent
afbcc3f8d3
commit
fa36e6d2b0
|
@ -0,0 +1,5 @@
|
|||
class AddColumToSeemsRateableRates < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :seems_rateable_rates, :is_teacher_score, :integer, default: 0
|
||||
end
|
||||
end
|
11
db/schema.rb
11
db/schema.rb
|
@ -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
|
||||
|
@ -977,13 +977,14 @@ ActiveRecord::Schema.define(:version => 20141210070327) do
|
|||
end
|
||||
|
||||
create_table "seems_rateable_rates", :force => true do |t|
|
||||
t.integer "rater_id", :limit => 8
|
||||
t.integer "rater_id", :limit => 8
|
||||
t.integer "rateable_id"
|
||||
t.string "rateable_type"
|
||||
t.float "stars", :null => false
|
||||
t.float "stars", :null => false
|
||||
t.string "dimension"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
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|
|
||||
|
|
Loading…
Reference in New Issue