more scaffolding

This commit is contained in:
Jared Cosulich 2017-03-01 13:23:54 -05:00
parent 7e051222aa
commit 392696301c
66 changed files with 1110 additions and 241 deletions

View 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

View 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