Moving from mysql to postgresql in rails

Quick question for the Stackoverflow community- I've searched elsewhere and can't seem to find the answer.

If i want to move a rails app that hasn't went very far yet (no records in the tables yet) from mysql to postgresql, would it be fine to just connect to an empty postgresql database and rerun the migrations so the schemas match?

Thanks!

Answers


Yes, it would. :) Change the adapter type in database.yml and you should be good to go.


Need Your Help

How to bypass “Adobe Flash Player has stopped a potentially unsafe operation.”?

flash actionscript-3 urlloader urlrequest

I have created an advent calendar for the blog of a friend, and to fetch/get/download the gifts of each day, the flash animation requests a file located at "http://domain.com/folder/etcetc/gifts.ph...

Runtime error 438 in Word for OS X

osx ms-word

I have a Word document with macros that I am trying to open in Word 2011 for OS X.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.