Skip to content

Commit

Permalink
Migrating Scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjbowman committed Jun 7, 2019
1 parent 062715d commit 4a718bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

Rails.application.routes.draw do
resources :tunes
# RESTful routes
resources :examples, except: %i[new edit]

Expand Down
9 changes: 8 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 4a718bf

Please sign in to comment.