Comments (7)
Realy exists a issue when connects in Postgres. The problem is on set_schema of post model, Sequel schema don't translate columns types to Postgres.
I will work to solve this, but if you discover a solution, please, pull request.
from wind.
+1
from wind.
I think that is the mapping of models (set_schema). Some sequel references uses "String :title" instead of "varchar :title", as is in Wind.
from wind.
And about primary key on Postgress, I found this:
primary_key The primary key for the class. Sequel can determine this automatically for many databases, but not all, so you may need to set it manually. If not determined automatically, the default is :id.
http://sequel.rubyforge.org/rdoc/classes/Sequel/Model/ClassMethods.html
from wind.
https://gist.github.com/3282515
I tried:
set_schema do
integer :id
String :title
String :text
datetime :date
String :link
set_primary_key :id
end
but it didn't work.
from wind.
With:
set_schema do
primary_key :id
Sequel generates a integer column with primary key constraint?
from wind.
My schema was like that before it didnt work. Did you see the gist?
set_schema do
primary_key :id
String :title
String :text
datetime :date
String :link
end
When I do ;heroku log':
2012-08-07T06:46:04+00:00 app[web.1]: Sequel::DatabaseError - PG::Error: ERROR: invalid input syntax for integer: ""
I'm getting this at each shot.
from wind.
Related Issues (20)
- Confirm delete actions
- Admin page titles
- Feed RSS
- Fix notice
- Feed url cutomization
- Invisible widgets HOT 1
- Post widget
- HTML widget order
- Pagination
- Feed link in widget
- dependence hurricane
- having some issue deploying to heroku
- /Pages route internal server error
- Dismiss this.
- Example is hosted by Tumblr HOT 2
- Move configurations to database
- Textile reference
- CSS theme support
- Post preview
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 wind.