OSDN Git Service

fix db
[pettanr/pettanr.git] / db / migrate / 20111206112949_create_resource_pictures.rb
index 7ed414c..3dfa27e 100644 (file)
@@ -5,8 +5,8 @@ class CreateResourcePictures < ActiveRecord::Migration
       t.integer :width, :null => false
       t.integer :height, :null => false
       t.integer :filesize, :null => false
-      t.integer :artist_id#, :null => false
-      t.integer :lisence_id#, :null => false
+      t.integer :artist_id, :null => false, :default => 0
+      t.integer :lisence_id, :null => false, :default => 0
       t.integer :original_picture_id, :null => false
 
       t.timestamps