Coder Social home page Coder Social logo

moses's Introduction

Moses

This is specialization of David Dollar's valkyrie gem. It's been modified for the purpose of migrating a SQL Server database to PostgreSQL.

Assumptions

It assumes an empty PostgreSQL (destination) database with schema that matches the SQL Server (source) database. This can be accomplished in a Rails app by updating its database.yml file to point to the Postgres database and running bundle exec rake db:drop db:create db:schema:load in whichever environment you want to use.

Usage

Since this is not a gem but just a set of scripts, you'll need to clone the code to use it:

git clone [email protected]:molawson/moses.git

Once you have a SQL Server database that you want to migrate to Postgres and an empty Postgres database with the right schema (like described above), you need to create a database.yml file in the config/ directory of this library. There is an existing config/database.example.yml file that you can use as a template. Fill out the database.yml file with the credientials of your source and destination databases.

Then, from the root directory of this library, run:

bundle install
bundle exec ./bin/moses

You'll see a progress bar for each table while it's being migrated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.