repo.or.cz
/
gitorious.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Handle not ready repos
[gitorious.git]
/
db
/
migrate
/
20090304120852_create_messages.rb
blob
1205d84ebccaad7cb48c2f8831fac1c37ff2dd92
1
class CreateMessages < ActiveRecord::Migration
2
def self.up
3
create_table :messages do |t|
4
t.integer :sender_id
5
t.integer :recipient_id
6
t.string :subject
7
t.text :body
8
t.string :notifiable_type
9
t.integer :notifiable_id
10
t.string :aasm_state
11
t.integer :in_reply_to_id
12
t.timestamps
13
end
14
end
15
16
def self.down
17
drop_table :messages
18
end
19
end