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

having an error working with postgres? #30

Open
angelacode opened this issue May 11, 2011 · 3 comments
Open

having an error working with postgres? #30

angelacode opened this issue May 11, 2011 · 3 comments

Comments

@angelacode
Copy link

I get the following error:

AlsoMigrate error: PGError: ERROR: syntax error at or near "LIKE"
LINE 2: LIKE emails;
^
: CREATE TABLE archived_emails
LIKE emails;
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract_adapter.rb:221:in log' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/postgresql_adapter.rb:520:inexecute'

@bardsley
Copy link

This can be fixed by adding () around the
LIKE {table}

@angelacode
Copy link
Author

How do I do this, thi sis all generated by the gem.....

@bardsley
Copy link

If you run gem environment on your commandline it will tell you where the gems are stored in GEM PATHS

The actual gem that needs patching is also_migrates, specifically migrator.rb on line 69

rrw4 added a commit to rrw4/also_migrate that referenced this issue Dec 9, 2013
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

No branches or pull requests

2 participants