OSDN Git Service

t#29312:any update
[pettanr/pettanr.git] / db / migrate / 20120816025308_create_ground_pictures.rb
diff --git a/db/migrate/20120816025308_create_ground_pictures.rb b/db/migrate/20120816025308_create_ground_pictures.rb
new file mode 100644 (file)
index 0000000..27852f3
--- /dev/null
@@ -0,0 +1,11 @@
+class CreateGroundPictures < ActiveRecord::Migration
+  def change
+    create_table :ground_pictures do |t|
+      t.integer :panel_id, :null => false, :default => 0
+      t.integer :picture_id, :null => false, :default => 0
+      t.integer :z, :null => false, :default => 0
+
+      t.timestamps
+    end
+  end
+end