开源检索数据迁移
This commit is contained in:
parent
c50266e264
commit
74ed832b68
|
@ -99,7 +99,8 @@ class Course < ActiveRecord::Base
|
|||
'is_delete',
|
||||
'syllabus_id',
|
||||
'end_time',
|
||||
'end_term'
|
||||
'end_term',
|
||||
'os_allow'
|
||||
|
||||
acts_as_customizable
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue