recipient lists

This commit is contained in:
Jared Cosulich 2017-03-02 12:00:40 -05:00
parent ab6cefd055
commit 37e01c024b
24 changed files with 491 additions and 1 deletions

View 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

View file

@ -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