mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
working on authentication
This commit is contained in:
parent
f3392f685d
commit
a018c42e0f
17 changed files with 154 additions and 80 deletions
11
db/migrate/20170405183356_create_user_schools.rb
Normal file
11
db/migrate/20170405183356_create_user_schools.rb
Normal 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
|
||||
10
db/schema.rb
10
db/schema.rb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue