Project

General

Profile

db migrate error occur

Added by arul baskar over 11 years ago

rake aborted!
undefined method `find_by_name' for Setting(Table doesn't exist):Class
D:/redmine2.3.2/app/models/setting.rb:171:in `find_or_default
'
D:/redmine2.3.2/app/models/setting.rb:108:in `[]'
D:/redmine2.3.2/app/models/setting.rb:137:in `plugin_redmine_
pluginname'
D:/redmine2.3.2/plugins/pluginname/init.rb:95:in `block i
n <top (required)>'
D:/redmine2.3.2/config/environment.rb:14:in `<top (required)>
'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

Am using my plugin init.rb file
Rails.configuration.to_prepare do
................
end

this code remove db migrate success.