mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 13:38:12 -08:00
17 lines
471 B
Ruby
17 lines
471 B
Ruby
# This migration comes from dashboard (originally 20240104174053)
|
|
class CreateDashboardSchools < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :dashboard_schools do |t|
|
|
t.string :name
|
|
t.references :dashboard_district, null: false, foreign_key: true
|
|
t.string :slug
|
|
t.integer :qualtrics_code
|
|
t.integer :dese_id
|
|
t.boolean :is_hs
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :dashboard_schools, :dese_id, unique: true
|
|
end
|
|
end
|