Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres 8.4 error on rake db:migrate #5

Open
dzaporozhets opened this issue Apr 5, 2011 · 3 comments · May be fixed by #7
Open

Postgres 8.4 error on rake db:migrate #5

dzaporozhets opened this issue Apr 5, 2011 · 3 comments · May be fixed by #7

Comments

@dzaporozhets
Copy link

For postgres 8.4 sql like this "CREATE TABLE archived_articles LIKE articles" is invalid.
This is correct one "CREATE TABLE archived_articles (LIKE articles)"

@kavu
Copy link

kavu commented Apr 7, 2011

I have the same, but on Postgres 9.0.3.

AlsoMigrate error: PGError: ERROR:  syntax error at or near "LIKE"
LINE 2:                       LIKE users;
                              ^
:                       CREATE TABLE archived_users
                      LIKE users;

@dzaporozhets
Copy link
Author

You can use my fork - https://github.com/randx/also_migrate

@bardsley
Copy link

Could you send a pull request to winton to resolve this. It's causing issues with connected gems like acts_as_archivable

@dzaporozhets dzaporozhets linked a pull request Mar 31, 2015 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants