Giter VIP home page Giter VIP logo

Comments (7)

DAddYE avatar DAddYE commented on July 19, 2024

Mmmm, Im using it in some project that Im working and I don't have this problem, can you show me logs and eventually "models" that fire this?

Thanks!

from mini_record.

sdeming avatar sdeming commented on July 19, 2024

Sure thing, here's a quick example using Padrino with AR and mini_record backed by a PostgreSQL database.

https://github.com/sdeming/mini_record_chickenegg

  • clone
  • bundle install
  • bundle exec rake -T

from mini_record.

DAddYE avatar DAddYE commented on July 19, 2024

Mmm if the db exist it works well so I think is a problem of PG adapter, because with Mysql it works. I need to inspect a bit more about this.

from mini_record.

sdeming avatar sdeming commented on July 19, 2024

I am also digging into it. If I am able to fix I'll be sure a pull request. Thanks for your time and energy.

from mini_record.

DAddYE avatar DAddYE commented on July 19, 2024

It works on pg also:

$ padrino console
=> Loading development console (Padrino v.0.10.2)
NOTICE:  CREATE TABLE will create implicit sequence "entries_id_seq" for serial column "entries.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "entries_pkey" for table "entries"
  DEBUG - [11/Sep/2011 11:04:08] " (9.8ms)  CREATE TABLE "entries" ("id" serial primary key, "subject" character varying(255), "body" text) "
  DEBUG - [11/Sep/2011 11:04:08] " (0.2ms)  SHOW search_path"
  DEBUG - [11/Sep/2011 11:04:08] " (2.5ms)   SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
 FROM pg_class t
 INNER JOIN pg_index d ON t.oid = d.indrelid
 INNER JOIN pg_class i ON d.indexrelid = i.oid
 WHERE i.relkind = 'i'
 AND d.indisprimary = 'f'
 AND t.relname = 'entries'
 AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
 ORDER BY i.relname
"
=> Loading Application Goof

from mini_record.

DAddYE avatar DAddYE commented on July 19, 2024

I forgot, to perform auto_migrations you should first create the database by hand with navicat or psql.

from mini_record.

sdeming avatar sdeming commented on July 19, 2024

Nice, thank you!

from mini_record.

Related Issues (20)

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.