Skip to content

Instantly share code, notes, and snippets.

@hmtanbir
Created September 10, 2018 14:00
Show Gist options
  • Save hmtanbir/9fc7c54916fffd0c172ce7d1e53bacd7 to your computer and use it in GitHub Desktop.
Save hmtanbir/9fc7c54916fffd0c172ce7d1e53bacd7 to your computer and use it in GitHub Desktop.
PG: not null error in existing table
add_column :spree_taxons, :slug, :string, null: false, index: true, default: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment