mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
Able to create schools now
This commit is contained in:
parent
a4fddbeced
commit
865b7b17af
11 changed files with 26 additions and 19 deletions
|
|
@ -3,7 +3,7 @@ class CreateDashboardCategories < ActiveRecord::Migration[7.1]
|
|||
create_table :dashboard_categories do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
t.string :category_id
|
||||
t.string :short_description
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ class CreateDashboardSubcategories < ActiveRecord::Migration[7.1]
|
|||
t.string :name
|
||||
t.text :description
|
||||
t.string :subcategory_id
|
||||
t.references :dashboard_category_id, null: false, foreign_key: true
|
||||
t.references :dashboard_categories, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardDistricts < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_districts do |t|
|
||||
t.string :name
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
t.integer :qualtrics_code
|
||||
|
||||
t.timestamps
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ class CreateDashboardSchools < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_schools do |t|
|
||||
t.string :name
|
||||
t.references :dashboard_district_id, null: false, foreign_key: true
|
||||
t.references :dashboard_district, null: false, foreign_key: true
|
||||
t.text :description
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
t.integer :qualtrics_code
|
||||
t.integer :dese_id
|
||||
t.boolean :is_hs
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardElls < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_ells do |t|
|
||||
t.string :designation
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardIncomes < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_incomes do |t|
|
||||
t.string :designation
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ class CreateDashboardRaces < ActiveRecord::Migration[7.1]
|
|||
create_table :dashboard_races do |t|
|
||||
t.string :designation
|
||||
t.integer :qualtrics_code
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardSpeds < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_speds do |t|
|
||||
t.string :designation
|
||||
t.string :slug, unique: true
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue