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
Post a Comment