move foodsoft_wiki db migration to plugin

This commit is contained in:
wvengen 2013-10-30 09:43:38 +01:00
parent de948d7692
commit c3068c8d51
2 changed files with 3 additions and 0 deletions

View file

@ -63,5 +63,8 @@ module Foodsoft
# It would be nice not to enable database connection when precompiling assets, # It would be nice not to enable database connection when precompiling assets,
# but i18n-js requires initialization, that's why it's on. # but i18n-js requires initialization, that's why it's on.
config.assets.initialize_on_precompile = true config.assets.initialize_on_precompile = true
# Include engine migrations. - http://stackoverflow.com/a/8364459/2866660
config.paths['db/migrate'] += Rails.application.railties.engines.map{|e| e.paths['db/migrate'].existent}.flatten
end end
end end