One Minute Change — Part 2

  • id
  • from_chord_id
  • to_chord_id
  • position
  • id
  • chord_name
  • id
  • user_id
  • change_id
  • count

Creating the Chords Table, Migration and Model

To create the migration, which will create the table, and to create the model, this can be done with a single command. At least to create the files:

Getting the Data for the Frontend

What we need as an endpoint. A secure endpoint and as a first entry, let’s just get it to bring back all of the UserChanges for the specific user we’re logged in as. That makes sense, right? Right.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dutch Steak

Dutch Steak

4 Followers

A coder, a rambler...and now wondering if maybe design and actual art, very different, should form my future...