Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates in order to be able to build my database locally after being out #30793

Merged
merged 1 commit into from Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# Backfill existing TeacherFeedbacks to set script_level_id if it can easily be # inferred because there is only one ScriptLevel associated with the level_id

require_relative '../../config/environment'
require_relative '../../../dashboard/config/environment'

def feedbacks_without_script_level_id
TeacherFeedback.where(script_level_id: nil)
Expand Down
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# Backfill existing TeacherFeedbacks to set script_level_id based on user progress.

require_relative '../../config/environment'
require_relative '../../../dashboard/config/environment'

def feedbacks_without_script_level_id
TeacherFeedback.where(script_level_id: nil)
Expand Down
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# Backfill existing TeacherFeedbacks to set script_level_id based on user assignment.

require_relative '../../config/environment'
require_relative '../../../dashboard/config/environment'

def feedbacks_without_script_level_id
TeacherFeedback.where(script_level_id: nil)
Expand Down
Expand Up @@ -4,7 +4,7 @@
# Scripts that do not have is_stable set to true are used internally, usually
# as drafts.

require_relative '../../config/environment'
require_relative '../../../dashboard/config/environment'

def feedbacks_without_script_level_id
TeacherFeedback.where(script_level_id: nil)
Expand Down
Expand Up @@ -3,7 +3,7 @@
# visibility. Visible scripts are ready to be assigned and used in production.
# Hidden scripts tend to be internal scripts used for curriculum development.

require_relative '../../config/environment'
require_relative '../../../dashboard/config/environment'

def feedbacks_without_script_level_id
TeacherFeedback.where(script_level_id: nil)
Expand Down
@@ -1,4 +1,4 @@
class AddScriptLeveLIdToTeacherFeedbacks < ActiveRecord::Migration[5.0]
class AddScriptLevelIdToTeacherFeedbacks < ActiveRecord::Migration[5.0]
def change
add_column :teacher_feedbacks, :script_level_id, :integer
end
Expand Down