OSDN Git Service

t#30021:add repeat on gp
[pettanr/pettanr.git] / db / migrate / 20111206130635_create_speeches.rb
1 class CreateSpeeches < ActiveRecord::Migration
2   def change
3     create_table :speeches do |t|
4       t.integer :speech_balloon_id, :null => false
5       t.string :content
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.string :settings
11
12       t.timestamps
13     end
14     add_index :speeches, [:speech_balloon_id]
15   end
16 end