14 lines
279 B
Ruby
14 lines
279 B
Ruby
|
# encoding: utf-8
|
||
|
|
||
|
namespace :site do
|
||
|
|
||
|
task :build => :environment do
|
||
|
|
||
|
Site.delete_all
|
||
|
|
||
|
Site.create( :school => 'The Best School', :department => 'Awesome', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|