Comments (2)
For those who still face this issue, it's possible to avoid the db calls with an explicit type definition in ModelResource
file :
class ModeleResource < Madmin::Resource
...
attribute :content, :rich_text
attribute :position, :integer
...
It's more a workaround than a solution but it allowed me to fix my deploy.
from madmin.
I have the same problem here (sort of): when a review app is started automatically by Scalingo for the first time, the database has not been initialized yet, because the app starts before the init scripts is run for the first time.
Which results in this error:
2022-09-02 06:19:34.543722746 +0000 UTC [web-1] from bin/rails:4:in `<main>'
2022-09-02 06:19:34.543734501 +0000 UTC [web-1] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `exec': ERROR: relation "events" does not exist (PG::UndefinedTable)
2022-09-02 06:19:34.543734842 +0000 UTC [web-1] LINE 9: WHERE a.attrelid = '"events"'::regclass
2022-09-02 06:19:34.543735145 +0000 UTC [web-1] ^
Did you find a way to avoid madmin to access the ressources at application start up?
from madmin.
Related Issues (20)
- Is it possible to search attributes of a Resource's assocations? HOT 1
- Relationships are unnecessarily preloaded
- forms + typography have stopped resolving HOT 6
- Skypack CDN failing to return Stimulus packages HOT 4
- Selecting associated models HOT 2
- AmbiguousColumn ERROR in `views/madmin/fields/has_many/_form.html.erb`
- Application and route helpers stopped working after upgrading to version 1.2.7 HOT 2
- Madmin errors - Users and notifications HOT 2
- Update tailwindcss-stimulus-components HOT 2
- [email protected] is missing in unpkg HOT 4
- to_param causing issues HOT 2
- A way to add a class to all form fields?
- Import map not resolving actiontext
- Menu is not working since tailwindcss-stimulus-components v4.1.0
- Not working with CSP HOT 5
- uninitialized constant Madmin::ActiveRecord::Enum HOT 3
- Where would I setup specific form helpers for different field types? HOT 1
- NoMethodError: undefined method pagy_link_proc HOT 3
- Add a support for model's instance method as resource's attribute HOT 3
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 madmin.