diff --git a/db/migrate/20141229025519_add_colum_to_seems_rateable_rates.rb b/db/migrate/20141229025519_add_colum_to_seems_rateable_rates.rb new file mode 100644 index 000000000..29a9a671c --- /dev/null +++ b/db/migrate/20141229025519_add_colum_to_seems_rateable_rates.rb @@ -0,0 +1,5 @@ +class AddColumToSeemsRateableRates < ActiveRecord::Migration + def change + add_column :seems_rateable_rates, :is_teacher_score, :integer, default: 0 + end +end diff --git a/db/schema.rb b/db/schema.rb index a75c6eb29..e109212cc 100644 --- a/db/schema.rb +++ b/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|