mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -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
|
||||
16
db/schema.rb
16
db/schema.rb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue