X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=db%2Fmigrate%2F20111206115439_create_balloon_templates.rb;fp=db%2Fmigrate%2F20111206115439_create_balloon_templates.rb;h=0000000000000000000000000000000000000000;hp=f5a1e93b8d3261bf33499a7ce2f1fa0c566a3774;hb=2b2bb5b365e839906e7e411af3c9fc08ea6c4898;hpb=162f249a099e6caeb2f4709ab9a7093d606ffae8 diff --git a/db/migrate/20111206115439_create_balloon_templates.rb b/db/migrate/20111206115439_create_balloon_templates.rb deleted file mode 100644 index f5a1e93b..00000000 --- a/db/migrate/20111206115439_create_balloon_templates.rb +++ /dev/null @@ -1,18 +0,0 @@ -class CreateBalloonTemplates < ActiveRecord::Migration - def change - create_table :balloon_templates do |t| - t.integer :speech_balloon_id, :null => false - t.integer :system_picture_id, :null => false - t.integer :tail, :null => false, :default => 1 - t.integer :size, :null => false, :default => 1 - t.integer :min_width, :null => false, :default => 0 - t.integer :max_width, :null => false, :default => 0 - t.integer :min_height, :null => false, :default => 0 - t.integer :max_height, :null => false, :default => 0 - - t.timestamps - end - add_index :balloon_templates, [:speech_balloon_id] - add_index :balloon_templates, [:speech_balloon_id, :tail, :size], :unique => true, :name => 'balloon_templates_idts' - end -end