ruby - How to completely clean SQLite3 database and import fresh data? -



ruby - How to completely clean SQLite3 database and import fresh data? -

i have dump info our production sqlite3 database. on localhost there's local sqlite3 database respective project. need import dump of database production local database.

how do that? need remove local sqlite3 database, or, if run import of sqlite3 database production, production info overwrite records in local database?

it's database rails app.

sqlite databases flat files. can download the database file server. find here: #{rails.root}/db/production.sqlite3. replace local development database file @ #{rails.root}/db/development.sqlite3 downloaded file.

ruby database sqlite import sqlite3

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -