OSDN Git Service

t#29312:any update
[pettanr/pettanr.git] / db / migrate / 20120816022713_create_colors.rb
diff --git a/db/migrate/20120816022713_create_colors.rb b/db/migrate/20120816022713_create_colors.rb
new file mode 100644 (file)
index 0000000..6b4a706
--- /dev/null
@@ -0,0 +1,11 @@
+class CreateColors < ActiveRecord::Migration
+  def change
+    create_table :colors do |t|
+      t.string :name, :null => false, :limit => 50, :default => 'no name'
+      t.integer :code, :null => false, :default => 0
+      t.integer :t, :null => false, :default => 0
+
+      t.timestamps
+    end
+  end
+end