OSDN Git Service

Merge branch 'v03_test' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v03_test
[pettanr/pettanr.git] / db / migrate / 20111206130635_create_speeches.rb
similarity index 55%
rename from db/migrate/20111206130635_create_speaches.rb
rename to db/migrate/20111206130635_create_speeches.rb
index b852831..9d9d174 100644 (file)
@@ -1,8 +1,8 @@
-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
@@ -12,7 +12,7 @@ class CreateSpeaches < ActiveRecord::Migration
 
       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