开源检索数据迁移

This commit is contained in:
huang 2017-01-20 10:25:15 +08:00
parent c50266e264
commit 74ed832b68
3 changed files with 12 additions and 2 deletions

View File

@ -99,7 +99,8 @@ class Course < ActiveRecord::Base
'is_delete',
'syllabus_id',
'end_time',
'end_term'
'end_term',
'os_allow'
acts_as_customizable

View File

@ -0,0 +1,9 @@
class OsAllowToCourse < ActiveRecord::Migration
def up
courses = Course.where(:tea_id => 193)
courses.update_all(:os_allow => true)
end
def down
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 => 20170119084215) do
ActiveRecord::Schema.define(:version => 20170120021457) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false