Slide 43
Slide 43 text
PUIFS@ECͷηοτΞοϓλεΫΛ࡞Δ
other_databases = %w(hogedb fugadb)
other_databases.each do |db|
current_namespace = namespace db.to_sym do
task :load_config do
end
desc "Creates the #{db}"
task :create => [:load_config] do
end
desc "Drops the #{db}"
task :drop => [:load_config] do
end
namespace :structure do
task :load => [:create, :environment, :load_config] do
end
end
desc "Creates the #{db} and load schema"
task :setup => ["#{db}:structure:load"]
end
end
جຊ3BJMTͷ%BUBCBTFSBLFΛࢀߟʹ͢Δ