Skip to content

Instantly share code, notes, and snippets.

@ahmadabdul3
Created June 9, 2017 14:13
Show Gist options
  • Save ahmadabdul3/9586cc8d5d49a83bb889caf1cc29162b to your computer and use it in GitHub Desktop.
Save ahmadabdul3/9586cc8d5d49a83bb889caf1cc29162b to your computer and use it in GitHub Desktop.
error
W, [2017-06-09T14:12:18.561678 #7708] WARN -- : [SKYLIGHT] [0.10.6] Running Skylight in development mode. No data will be reported until you deploy your app.
(To disable this message for all local apps, run `skylight disable_dev_warning`.)
== 20170605141824 AddSurveyableFlagToTopicCategories: migrating ===============
-- add_column(:topic_categories, :surveyable, :boolean, {:default=>:false})
-> 0.0081s
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedColumn: ERROR: column topic_categories.row_order does not exist
LINE 1: ...es" WHERE "topic_categories"."slug" = $1 ORDER BY "topic_cat...
^
: SELECT "topic_categories".* FROM "topic_categories" WHERE "topic_categories"."slug" = $1 ORDER BY "topic_categories"."row_order" ASC LIMIT $2
/Users/abdulahmad/Desktop/work/blackbird/db/migrate/20170605141824_add_surveyable_flag_to_topic_categories.rb:5:in `change'
/Users/abdulahmad/Desktop/work/blackbird/bin/rails:11:in `require'
/Users/abdulahmad/Desktop/work/blackbird/bin/rails:11:in `<top (required)>'
/Users/abdulahmad/Desktop/work/blackbird/bin/spring:14:in `<top (required)>'
bin/rails:5:in `load'
bin/rails:5:in `<main>'
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column topic_categories.row_order does not exist
LINE 1: ...es" WHERE "topic_categories"."slug" = $1 ORDER BY "topic_cat...
^
: SELECT "topic_categories".* FROM "topic_categories" WHERE "topic_categories"."slug" = $1 ORDER BY "topic_categories"."row_order" ASC LIMIT $2
/Users/abdulahmad/Desktop/work/blackbird/db/migrate/20170605141824_add_surveyable_flag_to_topic_categories.rb:5:in `change'
/Users/abdulahmad/Desktop/work/blackbird/bin/rails:11:in `require'
/Users/abdulahmad/Desktop/work/blackbird/bin/rails:11:in `<top (required)>'
/Users/abdulahmad/Desktop/work/blackbird/bin/spring:14:in `<top (required)>'
bin/rails:5:in `load'
bin/rails:5:in `<main>'
PG::UndefinedColumn: ERROR: column topic_categories.row_order does not exist
LINE 1: ...es" WHERE "topic_categories"."slug" = $1 ORDER BY "topic_cat...
^
/Users/abdulahmad/Desktop/work/blackbird/db/migrate/20170605141824_add_surveyable_flag_to_topic_categories.rb:5:in `change'
/Users/abdulahmad/Desktop/work/blackbird/bin/rails:11:in `require'
/Users/abdulahmad/Desktop/work/blackbird/bin/rails:11:in `<top (required)>'
/Users/abdulahmad/Desktop/work/blackbird/bin/spring:14:in `<top (required)>'
bin/rails:5:in `load'
bin/rails:5:in `<main>'
Tasks: TOP => db:migrate
(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