1 class CreateSpeechTemplates < ActiveRecord::Migration
3 create_table :speech_templates do |t|
4 t.integer :balloon_template_id, :null => false
5 t.integer :x, :null => false
6 t.integer :y, :null => false
7 t.integer :t, :null => false, :default => 1
8 t.integer :width, :null => false
9 t.integer :height, :null => false
13 add_index :speech_templates, [:balloon_template_id, :t], :unique => true, :name => 'speech_templates_idt'