Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/models/school.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

class School < ApplicationRecord
self.ignored_columns += [:creator_id]
# This is a temporary measure to allow the scratch_enabled column to be removed from the database without breaking the application.
self.ignored_columns += [:scratch_enabled]

has_many :classes, class_name: :SchoolClass, inverse_of: :school, dependent: :destroy
has_many :lessons, dependent: :nullify
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class RemoveScratchEnabledFromSchools < ActiveRecord::Migration[8.1]
def change
remove_column :schools, :scratch_enabled, :boolean, default: false, null: false
end
end
3 changes: 1 addition & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading