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

View file

@ -10,11 +10,18 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170225150432) do
ActiveRecord::Schema.define(version: 20170228164245) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "districts", force: :cascade do |t|
t.string "name"
t.integer "state_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "recipients", force: :cascade do |t|
t.string "name"
t.string "phone"
@ -30,6 +37,13 @@ ActiveRecord::Schema.define(version: 20170225150432) do
t.datetime "updated_at", null: false
end
create_table "schools", force: :cascade do |t|
t.string "name"
t.integer "district_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false