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

Database Migration using PostgreSQL backend #11

Open
JohnCasey opened this issue Sep 21, 2011 · 1 comment
Open

Database Migration using PostgreSQL backend #11

JohnCasey opened this issue Sep 21, 2011 · 1 comment

Comments

@JohnCasey
Copy link

When running the provided DB migrations on a PostgreSQL backend the migrations fail.

proposed fix:
Change the setting of the default value to "false" instead of "0" in the files:

  • 20110722141200_add_priority_to_newissuealerts.rb
  • 20110722144500_alter_newissuealerts_set_defaults.rb
    "false" will be interpreted correctly according to the used database backend
@chantra
Copy link
Owner

chantra commented Sep 21, 2011

hum, looking at http://api.rubyonrails.org/classes/ActiveRecord/Migration.html 1/0 seems to be the right thing to use.
But http://guides.rubyonrails.org/migrations.html#anatomy-of-a-migration mentions true/false

I will need to check how it goes with mysql. Tks for reporting

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