OSDN Git Service

rollback schema
[pettanr/pettanr.git] / db / schema.rb
index 937d0d3..a1cc209 100644 (file)
@@ -216,12 +216,20 @@ ActiveRecord::Schema.define(:version => 20120424100555) do
     t.datetime "updated_at"\r
   end\r
 \r
-  create_table "speach_balloon_templates", :force => true do |t|\r
+  create_table "speech_balloon_templates", :force => true do |t|\r
+    t.string   "name",       :limit => 50,                :null => false\r
+    t.string   "classname",  :limit => 50,                :null => false\r
+    t.string   "caption",    :limit => 30,                :null => false\r
+    t.integer  "t",                        :default => 0, :null => false\r
+    t.string   "settings",                                :null => false\r
     t.datetime "created_at"\r
     t.datetime "updated_at"\r
   end\r
 \r
-  create_table "speach_balloons", :force => true do |t|\r
+  add_index "speech_balloon_templates", ["name"], :name => "speech_balloon_templates_name", :unique => true\r
+  add_index "speech_balloon_templates", ["t"], :name => "speech_balloon_templates_t", :unique => true\r
+\r
+  create_table "speech_balloons", :force => true do |t|\r
     t.string   "name",                      :null => false\r
     t.integer  "tail_count", :default => 1, :null => false\r
     t.integer  "size_count", :default => 1, :null => false\r
@@ -262,10 +270,11 @@ ActiveRecord::Schema.define(:version => 20120424100555) do
   add_index "speaches", ["balloon_id"], :name => "index_speaches_on_balloon_id"\r
 \r
   create_table "system_pictures", :force => true do |t|\r
-    t.string   "ext",        :null => false\r
-    t.integer  "width",      :null => false\r
-    t.integer  "height",     :null => false\r
-    t.integer  "filesize",   :null => false\r
+    t.string   "ext",                      :null => false\r
+    t.integer  "width",                    :null => false\r
+    t.integer  "height",                   :null => false\r
+    t.integer  "filesize",                 :null => false\r
+    t.string   "md5",        :limit => 32, :null => false\r
     t.datetime "created_at"\r
     t.datetime "updated_at"\r
   end\r