OSDN Git Service

fix: finder
[pettanr/pettanr.git] / db / migrate / 20111206121123_create_balloons.rb
index 6dc5d2a..5c51a43 100644 (file)
@@ -1,21 +1,17 @@
 class CreateBalloons < ActiveRecord::Migration
   def change
     create_table :balloons do |t|
-      t.integer :panel_id, :null => false
-      t.integer :balloon_template_id, :null => false
+      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 :x, :null => false
       t.integer :y, :null => false
-      t.integer :z, :null => false
-      t.integer :t, :null => false, :default => 1
       t.integer :width, :null => false
       t.integer :height, :null => false
+      t.text :caption
+      t.text :settings
 
       t.timestamps
     end
-    add_index :balloons, [:panel_id]
-    add_index :balloons, [:panel_id, :t], :unique => true, :name => 'balloon_idt'
+    add_index :balloons, [:speech_balloon_id]
   end
 end