OSDN Git Service

fix extend for profiler
[pettanr/pettanr.git] / db / migrate / 20111206121123_create_balloons.rb
1 class CreateBalloons < ActiveRecord::Migration
2   def change
3     create_table :balloons do |t|
4       t.integer :speech_balloon_id, :null => false
5       t.integer :system_picture_id, :null => false
6       t.integer :x, :null => false
7       t.integer :y, :null => false
8       t.integer :width, :null => false
9       t.integer :height, :null => false
10       t.text :caption
11       t.text :settings
12
13       t.timestamps
14     end
15     add_index :balloons, [:speech_balloon_id]
16   end
17 end