From now on these static pages: `/privacy' `/conditions' `/accesibility' `/help/faq' `/welcome' have been moved to the DB and can be modified easily by any administrator in `/admin/site_customization/pages'
13 lines
375 B
Ruby
13 lines
375 B
Ruby
namespace :db do
|
|
desc "Resets the database and loads it from db/dev_seeds.rb"
|
|
task :dev_seed, [:print_log] => [:environment] do |t, args|
|
|
@avoid_log = args[:print_log] == "avoid_log"
|
|
load(Rails.root.join("db", "dev_seeds.rb"))
|
|
end
|
|
|
|
desc "populate the default pages manually"
|
|
task pages: :environment do
|
|
load(Rails.root.join("db", "pages.rb"))
|
|
end
|
|
end
|