Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created April 23, 2011 22:31
Show Gist options
  • Save lucascaton/939042 to your computer and use it in GitHub Desktop.
Save lucascaton/939042 to your computer and use it in GitHub Desktop.
$ rake db:migrate
(in /Users/lucascaton/projects/code/ruby/pessoais/golks)
== AddNameToMovies: migrating ================================================
-- add_column(:movies, :name, :string, {:null=>false})
rake aborted!
An error has occurred, this and all later migrations canceled:
PGError: ERROR: column "name" contains null values
: ALTER TABLE "movies" ALTER "name" SET NOT NULL
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment