I dont want Rails 3 to generate my schema every time I do migration. How to properly disable it?
Thanks
Create an application specific task (as Alex Kaushovik suggested) like so...
Create a file lib\tasks\db_schema_override
(actual name doesn't matter, you need a .rake file in lib\tasks) with contents as below (credit to Matthew Bass for remove_task
)
Rake::TaskManager.class_eval do
def remove_task(task_name)
@tasks.delete(task_name.to_s)
end
end
Rake.application.remove_task('db:schema:dump')
namespace :db do
namespace :schema do
task :dump do
# Overridden to do nothing
end
end
end