OSDN Git Service

fix panel test
[pettanr/pettanr.git] / db / migrate / 20111206111202_create_panels.rb
index bcf7b3e..9cb1b92 100644 (file)
@@ -1,7 +1,7 @@
 class CreatePanels < ActiveRecord::Migration
   def change
     create_table :panels do |t|
-      t.integer :comic_id, :null => false
+      t.integer :comic_id
       t.integer :resource_picture_id
       t.integer :width, :null => false, :default => 200
       t.integer :height, :null => false, :default => 80
@@ -14,7 +14,6 @@ class CreatePanels < ActiveRecord::Migration
 
       t.timestamps
     end
-    add_index :panels, [:comic_id, :t], :unique => true, :name => 'panels_idt'
     add_index :panels, [:author_id]
   end
 end