OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import all source code
[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
5
t.integer :default_width, :null => false, :default => 200
6
t.integer :default_height, :null => false, :default => 80
7
t.integer :author_id
8
9
t.timestamps
10
end
11
add_index :comics, [:author_id]
12
end
13
end