From: yasushiito Date: Tue, 20 Aug 2013 10:32:58 +0000 (+0900) Subject: t#31902:add import migration X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=commitdiff_plain;h=295e38b6fe003baa7c750839e7181eb37c08e965 t#31902:add import migration --- diff --git a/.gitignore b/.gitignore index 003cd7ac..603100a4 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ db/migrate/*_unknown_v??_licenses_attributes.rb db/migrate/*_speech_balloon_speech_balloons.rb db/migrate/*_speech_balloon_balloons.rb db/migrate/*_speech_balloon_speeches.rb +db/migrate/*_speech_balloon_import_*.rb diff --git a/script/sbt_helper.rb b/script/sbt_helper.rb index bdfa029d..2dd5120c 100644 --- a/script/sbt_helper.rb +++ b/script/sbt_helper.rb @@ -32,5 +32,5 @@ replace_system_picture json, wd puts "generating " + outputfile File.open(outputfile, 'w') do |f| - f.write json.to_json.to_s + f.write JSON.pretty_generate(json) end