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