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
Lazy attributes and partial updates
[railsex.git]
/
test
/
db
/
migrate
/
002_add_stuff_to_person.rb
blob
c92dab22400e048964d10198f1dca1c5d87eb97e
1
class AddStuffToPerson < ActiveRecord::Migration
2
def self.up
3
add_column :people, :bio, :text
4
add_column :people, :history, :text
5
end
6
7
def self.down
8
remove_column :people, :history
9
remove_column :people, :bio
10
end
11
end