Comments (4)
Hi, @timmus!
So, I'm trying to test it myself before answering to your question. But I think, yes, it is possible to access the database from within the framework. Since you must apply the seed framework over a database, it should be possible to obtain the database instance from Sequel. It will change based on the Sequel's version, though.
I'll provide more details once I have completed local tests for that.
Thanks!
from sequel-seed.
Oh, I need to know which Sequel version you're using. Thanks! cc @timmus
from sequel-seed.
I'll get back to you asap. I think I found a way with application.rb. I'm new to rails so likely my lack of understanding.
from sequel-seed.
Closing this issue due to no activity.
from sequel-seed.
Related Issues (11)
- Load yaml files and apply them as fixtures/seeds HOT 1
- YAML seeds fail when Sequel::Model subclass is autoloaded HOT 2
- Canβt run seed HOT 2
- Load json files and apply them as fixtures/seeds HOT 1
- Load seeds/fixtures from CSV files
- cannot load such file -- sequel/extensions/seed (LoadError) HOT 2
- Work with Model associations through JSON & YAML files
- seed_hash_environment is not a local variable HOT 1
- Target version support HOT 3
- Using Arrays in JSON migrations (type mismatch) HOT 6
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 sequel-seed.