OSDN Git Service

t#30021:add repeat on gp
[pettanr/pettanr.git] / db / migrate / 20111206105830_create_comics.rb
1 class CreateComics < ActiveRecord::Migration
2   def change
3     create_table :comics do |t|
4       t.string :title, :null => false, :limit => 100
5       t.integer :width, :null => false
6       t.integer :height, :null => false
7       t.integer :visible, :null => false, :default => 0
8       t.integer :editable, :null => false, :default => 0
9       t.integer :author_id, :null => false
10
11       t.timestamps
12     end
13     add_index :comics, [:author_id]
14   end
15 end