mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
recipient lists
This commit is contained in:
parent
ab6cefd055
commit
37e01c024b
24 changed files with 491 additions and 1 deletions
12
db/migrate/20170302154609_create_recipient_lists.rb
Normal file
12
db/migrate/20170302154609_create_recipient_lists.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class CreateRecipientLists < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :recipient_lists do |t|
|
||||
t.references :school, foreign_key: true
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.text :recipient_ids
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
13
db/schema.rb
13
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: 20170228164245) do
|
||||
ActiveRecord::Schema.define(version: 20170302154609) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -22,6 +22,16 @@ ActiveRecord::Schema.define(version: 20170228164245) do
|
|||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "recipient_lists", force: :cascade do |t|
|
||||
t.integer "school_id"
|
||||
t.string "name"
|
||||
t.text "description"
|
||||
t.text "recipient_ids"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["school_id"], name: "index_recipient_lists_on_school_id", using: :btree
|
||||
end
|
||||
|
||||
create_table "recipients", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.string "phone"
|
||||
|
|
@ -61,4 +71,5 @@ ActiveRecord::Schema.define(version: 20170228164245) do
|
|||
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
||||
end
|
||||
|
||||
add_foreign_key "recipient_lists", "schools"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue