diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index c7534423..6df707f9 100755 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -96,8 +96,7 @@ class WelcomeController < ApplicationController LocalSubject.find_each do |local_subject| subject = Subject.create!(name: local_subject.name, description: local_subject.description, user_id: User.current.id, status: 0, learning_notes: local_subject.learning_notes, introduction: local_subject.introduction, - stages_count: local_subject.stages_count, stage_shixuns_count: local_subject.stage_shixuns_count, - shixuns_count: local_subject.shixuns_count, visits: 1) + stages_count: local_subject.stages_count, stage_shixuns_count: local_subject.stage_shixuns_count, visits: 1) m = SubjectMember.new(:user_id => User.current.id, :role => 1) subject.subject_members << m