mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
ECP-170 Remove login requirement for Trition. Switch to using predefined passwords stored in the database for district login.
This commit is contained in:
parent
72e38f5ee8
commit
2068758ae4
15 changed files with 146 additions and 16 deletions
7
db/migrate/20250611181510_add_credentials_to_district.rb
Normal file
7
db/migrate/20250611181510_add_credentials_to_district.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class AddCredentialsToDistrict < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :districts, :username, :string, null: true, default: nil
|
||||
add_column :districts, :password, :string, null: true, default: nil
|
||||
add_column :districts, :login_required, :boolean, null: false, default: true
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
class AddNameSlugAndQualtricsCodeIndexesToDistrict < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_index :districts, :name, unique: true
|
||||
add_index :districts, :slug, unique: true
|
||||
add_index :districts, :qualtrics_code, unique: true
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_05_23_222834) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_06_11_182208) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
|
|
@ -69,6 +69,12 @@ ActiveRecord::Schema[8.0].define(version: 2025_05_23_222834) do
|
|||
t.integer "qualtrics_code"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "username"
|
||||
t.string "password"
|
||||
t.boolean "login_required", default: true, null: false
|
||||
t.index ["name"], name: "index_districts_on_name", unique: true
|
||||
t.index ["qualtrics_code"], name: "index_districts_on_qualtrics_code", unique: true
|
||||
t.index ["slug"], name: "index_districts_on_slug", unique: true
|
||||
end
|
||||
|
||||
create_table "ells", force: :cascade do |t|
|
||||
|
|
|
|||
|
|
@ -14,3 +14,7 @@ seeder.seed_staffing Rails.root.join("data", "staffing", "staffing.csv")
|
|||
seeder.seed_staffing Rails.root.join("data", "staffing", "nj_staffing.csv")
|
||||
seeder.seed_staffing Rails.root.join("data", "staffing", "wi_staffing.csv")
|
||||
seeder.seed_esp_counts Rails.root.join("data", "staffing", "esp_counts.csv")
|
||||
|
||||
Sftp::File.open(filepath: "/ecp/district_credentials.csv") do |file|
|
||||
seeder.seed_district_credentials file:
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue