Remove field class_code from SchoolClass

parent 7429d62a
Pipeline #4538 skipped
......@@ -8,7 +8,6 @@ class SchoolClass < ActiveRecord::Base
# validations
validates_presence_of :census_year,
:class_code,
:num_enrollments,
:administrative_level,
:city,
......@@ -17,7 +16,6 @@ class SchoolClass < ActiveRecord::Base
:school_class_type
validates_numericality_of :census_year,
:class_code,
only_integer: true,
greater_than: 0
end
......@@ -2,7 +2,6 @@ class CreateSchoolClasses < ActiveRecord::Migration
def change
create_table :school_classes do |t|
t.integer :census_year
t.integer :class_code, index: true
t.integer :num_enrollments
t.belongs_to :administrative_level, index: true
t.belongs_to :school_class_type, index: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment