api/db/migrate/20160115215519_create_families.rb
class CreateFamilies < ActiveRecord::Migration[5.1]
def change
create_table :families do |t|
t.index :id
t.string :name, default: ''
t.string :photo_url
t.integer :user_id, index: true
t.timestamps null: false
end
add_foreign_key :families, :users
end
end