1. 20 6月, 2017 2 次提交
    • S
      If migrations are pending, make CurrentSettings use existing values and... · 575dced5
      Stan Hu 提交于
      If migrations are pending, make CurrentSettings use existing values and populate missing columns with defaults
      
      master was failing because `ApplicationSetting.create_from_defaults` attempted
      to write to a column that did not exist in the database. This occurred in a
      `rake db:migrate` task, which was unable to perform the migration that would
      have added the missing column in the first place.
      
      In 9.3 RC2, we also had a bug where password sign-ins were disabled because
      there were many pending migrations. The problem occurred because
      `fake_application_settings` was being returned with an OpenStruct that did not
      include the predicate method `signup_enabled?`. As a result, the value would
      erroneously return `nil` instead of `true`. This commit uses the values of the
      defaults to mimic this behavior.
      
      This commit also refactors some of the logic to be clearer.
      575dced5
    • S
      Revert "Merge branch 'rs-revert-11842' into 'master'" · 84cfb33f
      Stan Hu 提交于
      This reverts commit ad521bde, reversing
      changes made to 3a38e5f1.
      84cfb33f
  2. 18 6月, 2017 1 次提交
  3. 17 6月, 2017 23 次提交
  4. 16 6月, 2017 14 次提交