Gemfile, which you'll find in the root folder of your app:
rails gis short for
rails generate, like
rails db:migrateto execute the instructions that the generator wrote for us to create the new table.
If you generated something mistaken:
- If you already
rails db:migrated, then first
rails db:rollbackto undo just the most recent migration. If you didn't
rails db:migrateafter you generated the resource, then no need to do this step.
- Next,rails destroy draft:resource photowill remove all the files that it previously added. You can then re-generate from scratch.
application.html.erb-- say yes if you are sure that's okay. Copy out any important stuff if necessary, to be re-pasted back in.