Git Product home page Git Product logo

cloud-activerecord-maxdb-adapter's People

Contributors

misappi avatar sapnwcloudlabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cloud-activerecord-maxdb-adapter's Issues

Migrations with composite index do not work

I have a migration with a unique index like this:

add_index :memberships, [:user_id, :group_id], :unique => true

I documented the error in a gist: https://gist.github.com/anonymous/4740614. Most important part:

An error has occurred, all later migrations canceled: ActiveRecord::JDBCError: [-5015] (at 39): Missing keyword:ON: CREATE UNIQUE INDEX idx_rmemberships_[:user_id, :group_id] ON rmemberships([:user_id, :group_id]) from arjdbc/jdbc/RubyJdbcConnection.java:195:in `execute' from /usr/sap/ljs/webapps/nwc_team_calendar/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.5/lib/arjdbc/jdbc/adapter.rb:217:in `_execute' 

Syntax error on running migration

I've got following error when I'm trying to run my app on local server.

ActiveRecord::JDBCError: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "SERIAL" at line 1, column 50.: CREATE TABLE admins (id INTEGER NOT NULL DEFAULT SERIAL PRIMARY KEY, email VARCHAR(255) DEFAULT '' NOT NULL, encrypted_password VARCHAR(255) DEFAULT '' NOT NULL, reset_password_token VARCHAR(255), reset_password_sent_at timestamp, remember_created_at timestamp, sign_in_count INTEGER DEFAULT 0 NOT NULL, current_sign_in_at timestamp, last_sign_in_at timestamp, current_sign_in_ip VARCHAR(255), last_sign_in_ip VARCHAR(255), created_at timestamp, updated_at timestamp)

It also happens on cloud deployment.

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.