-class CreateSpeaches < ActiveRecord::Migration
+class CreateSpeeches < ActiveRecord::Migration
def change
- create_table :speaches do |t|
+ create_table :speeches do |t|
t.integer :balloon_id, :null => false
- t.integer :speach_template_id, :null => false
+ t.integer :speech_template_id, :null => false
t.string :content
t.integer :x, :null => false
t.integer :y, :null => false
t.timestamps
end
- add_index :speaches, [:balloon_id]
- add_index :speaches, [:balloon_id, :t], :unique => true, :name => 'speaches_bt'
+ add_index :speeches, [:balloon_id]
+ add_index :speeches, [:balloon_id, :t], :unique => true, :name => 'speeches_bt'
end
end