repo.or.cz
/
railsex.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Now with extra protection - tests!
[railsex.git]
/
test
/
db
/
migrate
/
001_create_people.rb
blob
5211e74286775ff8cbcce4f60c64a0f0729f5bcf
1
class CreatePeople < ActiveRecord::Migration
2
def self.up
3
create_table :people do |t|
4
t.string :name
5
t.text :address
6
t.integer :age
7
8
t.timestamps
9
end
10
end
11
12
def self.down
13
drop_table :people
14
end
15
end