metalels / rakuda

Data migration tool using (ruby)Active Record. (Active Recordを用いたデータ移行ツール)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rakuda

Logo

  • master: Build Status

rakudaについて

ActiveRecordを利用したマイグレータです。 rakudaの由来は、データを運ぶ「ラクダ」と設定が「楽だ」から来ています。

テスト環境

  • Ruby 2.2.x, 2.3.x, 2.4.x, 2.5.x

  • System dependencies

    • ActiveRecordがサポートしているDB
  • Gem dependancies

    • bundler
  • Configuration Files

    • config/share.yml
    • config/generate.yml
    • config/submit.yml
    • config/migrate.yml
    • config/verify.yml
    • config/database.yml
  • Library Instaration

    • bundle install (--path vendor/bundler)

使用方法

環境変数

  • RAKUDA_ENV 動作モード
  • RAKUDA_IM_PATH 中間ファイル出力ディレクトリ

データ移行(中間ファイル経由での移行)

  1. 移行元DBから中間ファイルを生成

  2. 中間ファイルから移行先DBへデータを登録

  3. 前後データを比較する

データ移行(直接移行)

  1. 移行元DBから移行先DBへデータを登録

  2. 前後データを比較する

Log -ログ-

ActiveRecordのログは log/active_record.log へ出力されます。

License -ライセンス-

このソフトウェアは、 MITライセンスで配布されている製作物が含まれています。
このソフトウェアは、 Apache 2.0ライセンスで配布されている製作物が含まれています。

this software includes the work that is distributed in the MIT License
this software includes the work that is distributed in the Apache License 2.0

Authors -作者-

metalels bon10

About

Data migration tool using (ruby)Active Record. (Active Recordを用いたデータ移行ツール)

License:MIT License


Languages

Language:Ruby 100.0%