ruby on rails - How to get back the tables in SQLite -


i'm beginner in ruby on rails. dropped table. have files in db/migrate folder. how can table migrate files?

the ideal way this, using

rake db:setup 

this recreate database , load schema development database. every migration rails keeps current state of database in schema.rb (or structure.sql), , uses efficiently recreate last state.

if have pending migrations, have rake db:migrate, take more time, since redo every step before.

also note in cases not possible run migrations start again, , imho not intention of migrations.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -