Comments (3)
@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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activerecord-without-rails.