taps migration failing from sqlite to postgres rails4, ruby 1.9.3

后端 未结 3 685
萌比男神i
萌比男神i 2021-01-13 09:07

I am trying to migrate my Rails app to Postgresql for heroku however i can\'t get taps to get the data from my SQLite3 database, here is what i have tried:

C

3条回答
  •  庸人自扰
    2021-01-13 09:31

    This worked for me:

    1. I went up one directory from my project directory then did the following
    2. gem install taps
    3. gem uninstall rack
    4. gem install rack --version 1.0.1

    Start the sqlite server from the project directory, in the 'one up directory' run:

    taps pull postgres://f3@localhost/f3_development http://user:password@localhost:5000
    

    Then did the migration as before and it worked. I had rack 1.5.2 installed so I had to remove that and replace it with rack 1.0.1. I'm using ruby 2.0.0-p0 and rails 4.0.0.beta1

    It seems only the pull command needed the old version of rack so the server could run on the newer 1.5.2 version...

提交回复
热议问题