Cannot run migrations on latest master due to !774
After !774 (merged) was pulled into master, I updated my local copy and tried to run rake db:migrate
, but was greeted with this error:
gitlab master % rake db:migrate
/Users/tsigo/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/activemodel-4.1.9/lib/active_model/attribute_methods.rb:435:in `method_missing': undefined method `session_expire_delay' for #<ApplicationSetting:0x007ffc4cef16b8> (NoMethodError)
from /Users/tsigo/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/activerecord-4.1.9/lib/active_record/attribute_methods.rb:213:in `method_missing'
from /Users/tsigo/Code/rails/gitlab-development-kit/gitlab/config/initializers/session_store.rb:4:in `<top (required)>'
(snip a bunch of backtrace)
from -e:1:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Basically you can't migrate because the field that the migration would create doesn't exist yet. It's a chicken-and-egg problem. This is a blocker for 7.12, and I've got a fix ready, I just want to make sure I'm not the only one seeing it.