Git Product home page Git Product logo

Comments (3)

jwo avatar jwo commented on September 17, 2024

@Gowtham-Sai I just pushed an update that required an upgrade in the Gemfile and the format of the migrations to work with Rails 5+ (1d3ea9f). When I did that, I was able to migrate the database and run ruby ar-no-rails.rb to connect.

Will you check and see if that works for you? Otherwise, make sure to change the db and username in config/database.yml to your setup.

from activerecord-without-rails.

gwthm-in avatar gwthm-in commented on September 17, 2024

I'm working on AR 4.2. I guess the issue is because of the location of migrations files. You need to specify the outer folder which contains the migrations.

    # lib/db/migrations/23432423_name_migrate.rb -> Actual file location. 
    ActiveRecord::Migrator.migrate("lib/db/")

from activerecord-without-rails.

jwo avatar jwo commented on September 17, 2024

@Gowtham-Sai thanks for the update! ActiveRecord definitely expects the migrations to exist in db/migrations like in a rails app. Going to update the README to mention this to help people in future.

from activerecord-without-rails.

Related Issues (2)

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.