OSDN Git Service

speech balloon template changed
[pettanr/pettanr.git] / db / migrate / 20120424100555_create_speech_balloon_templates.rb
1 class CreateSpeechBalloonTemplates < ActiveRecord::Migration
2   def change
3     create_table :speech_balloon_templates do |t|
4       t.string :name, :null => false, :limit => 50
5       t.string :classname, :null => false, :limit => 50
6       t.string :caption, :null => false, :limit => 30
7       t.integer :t, :null => false, :default => 0
8       t.string :settings, :null => false
9
10       t.timestamps
11     end
12     add_index :speech_balloon_templates, [:name], :unique => true, :name => 'speech_balloon_templates_name'
13     add_index :speech_balloon_templates, [:t], :unique => true, :name => 'speech_balloon_templates_t'
14   end
15 end