In my dev database (SQLite) i have some tables (like vocabularies) which i need on production (PostgreSQL, MySQL). Is there some method to migrate table with data?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rails doesn’t provide any way to dump the data out of a database but the database itself can. Through rails you can only dump the schema which already available in
db/schema.rb. However, I would suggest you to dump the data in a CSV file and import from that CSV file into whatever database you wish.To dump data into a CSV file follow this SO question and Sqlite3 Doc or Sqlite3 Administrator.