From 4a718bf606f353e900fbe2ff15ea52b021f5466b Mon Sep 17 00:00:00 2001 From: ericbowman Date: Fri, 7 Jun 2019 10:30:57 -0400 Subject: [PATCH] Migrating Scaffold --- config/routes.rb | 1 + db/schema.rb | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 53107bd..c6f9ced 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true Rails.application.routes.draw do + resources :tunes # RESTful routes resources :examples, except: %i[new edit] diff --git a/db/schema.rb b/db/schema.rb index 648b149..e35602b 100755 --- a/db/schema.rb +++ b/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: 2) do +ActiveRecord::Schema.define(version: 2019_06_07_142623) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -23,6 +23,13 @@ t.index ["user_id"], name: "index_examples_on_user_id" end + create_table "tunes", force: :cascade do |t| + t.string "title" + t.string "composer" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "users", force: :cascade do |t| t.string "email", null: false t.string "token", null: false