Use railtie to export the rake tasks.