ROR for migration project?

Customer wants to migrate their existing client-server application to
web application. The web application needs to use the legacy database
used by the client server application. Can we use legacy database in
Any issue we will face in ActiveRecord model? Rails Migration concept
works for legacy database?

If you are worked in this kind of projects kindly share your experience.

Any comments?