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

Datatypes in Migration Scripts with PostgreSQL back-end #16

Open
edoceo opened this issue Mar 9, 2012 · 0 comments
Open

Datatypes in Migration Scripts with PostgreSQL back-end #16

edoceo opened this issue Mar 9, 2012 · 0 comments

Comments

@edoceo
Copy link

edoceo commented Mar 9, 2012

I had to change the data types to get this to work with my PostgreSQL system.

db/migrate/20110722141200_add_priority_to_newissuealerts.rb

  • add_column(:newissuealerts, :priority, :boolean, {:default=>0}
  • add_column(:newissuealerts, :priority, :integer, {:default=>0}

db/migrate/20110722144500_alter_newissuealerts_set_defaults.rb

And in this one the default is specified as 0 when it should be "false"

  • change_column_default(:newissuealerts, :enabled, 0)
  • change_column_default(:newissuealerts, :enabled, false)

HTH

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

0 participants