Created rake task to save rate
This commit is contained in:
parent
839cde3de7
commit
c3e9d4b408
5
Rakefile
5
Rakefile
@ -1,3 +1,6 @@
|
||||
require 'sinatra/activerecord'
|
||||
require 'sinatra/activerecord/rake'
|
||||
require './app'
|
||||
require './models/rate'
|
||||
require './app'
|
||||
|
||||
Dir.glob('lib/tasks/*.rake').each { |r| load r}
|
6
lib/tasks/cron.rake
Normal file
6
lib/tasks/cron.rake
Normal file
@ -0,0 +1,6 @@
|
||||
namespace :rate do
|
||||
desc "create and save rate"
|
||||
task :save do
|
||||
Rate.save
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user