This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2011-08-18 05:43:33 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
namespace :site do
|
|
|
|
|
|
|
|
task :build => :environment do
|
|
|
|
|
|
|
|
Site.delete_all
|
2011-11-22 10:54:10 +00:00
|
|
|
Purchase.delete_all
|
2011-08-18 05:43:33 +00:00
|
|
|
|
2011-11-22 10:54:10 +00:00
|
|
|
Site.create( :school => 'RulingDigital University', :department => 'Computer Science', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
|
2011-08-18 05:43:33 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|