OSDN Git Service

fixed assets/ & views/layouts/
[pettanr/pettanr.git] / db / migrate / 20111206120252_create_speach_templates.rb
1 class CreateSpeachTemplates < ActiveRecord::Migration
2   def change
3     create_table :speach_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
10
11       t.timestamps
12     end
13     add_index :speach_templates, [:balloon_template_id, :t], :unique => true, :name => 'speach_templates_idt'
14   end
15 end