OSDN Git Service

update speech and balloon
[pettanr/pettanr.git] / db / migrate / 20111208235818_create_speech_balloons.rb
index ba2ff9d..ded763f 100644 (file)
@@ -1,13 +1,15 @@
 class CreateSpeechBalloons < ActiveRecord::Migration
   def change
     create_table :speech_balloons do |t|
-      t.string :name, :null => false
-      t.integer :tail_count, :null => false, :default => 1
-      t.integer :size_count, :null => false, :default => 1
-      t.integer :t, :null => false, :default => 1
+      t.integer :panel_id, :null => false
+      t.integer :speech_balloon_template_id, :null => false
+      t.string :classname, :null => false, :limit => 50
+      t.integer :z, :null => false
+      t.integer :t, :null => false
+      t.string :settings
 
       t.timestamps
     end
-    add_index :speech_balloons, [:t], :unique => true, :name => 'speech_balloons_t'
+    add_index :speech_balloons, [:panel_id]
   end
 end