OSDN Git Service

t#29312:any update
[pettanr/pettanr.git] / db / migrate / 20120816024744_create_ground_colors.rb
diff --git a/db/migrate/20120816024744_create_ground_colors.rb b/db/migrate/20120816024744_create_ground_colors.rb
new file mode 100644 (file)
index 0000000..b6294ae
--- /dev/null
@@ -0,0 +1,12 @@
+class CreateGroundColors < ActiveRecord::Migration
+  def change
+    create_table :ground_colors do |t|
+      t.integer :panel_id, :null => false, :default => 0
+      t.integer :color_id, :null => false, :default => 0
+      t.integer :author_id, :null => false, :default => 0
+      t.integer :z, :null => false, :default => 0
+
+      t.timestamps
+    end
+  end
+end