mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
more scaffolding
This commit is contained in:
parent
7e051222aa
commit
392696301c
66 changed files with 1110 additions and 241 deletions
10
db/migrate/20170228164212_create_schools.rb
Normal file
10
db/migrate/20170228164212_create_schools.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateSchools < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :schools do |t|
|
||||
t.string :name
|
||||
t.integer :district_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/migrate/20170228164245_create_districts.rb
Normal file
10
db/migrate/20170228164245_create_districts.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateDistricts < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :districts do |t|
|
||||
t.string :name
|
||||
t.integer :state_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue