working on authentication

This commit is contained in:
Jared Cosulich 2017-04-05 21:17:27 -04:00
parent f3392f685d
commit a018c42e0f
17 changed files with 154 additions and 80 deletions

View file

@ -0,0 +1,11 @@
class CreateUserSchools < ActiveRecord::Migration[5.0]
def change
create_table :user_schools do |t|
t.integer :user_id
t.integer :school_id
t.integer :district_id
t.timestamps
end
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170317150205) do
ActiveRecord::Schema.define(version: 20170405183356) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -152,6 +152,14 @@ ActiveRecord::Schema.define(version: 20170317150205) do
t.index ["slug"], name: "index_schools_on_slug", unique: true, using: :btree
end
create_table "user_schools", force: :cascade do |t|
t.integer "user_id"
t.integer "school_id"
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