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
t.timestamps
end
- add_index :panels, [:comic_id, :t], :unique => true, :name => 'panels_idt'
add_index :panels, [:author_id]
end
end