You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
414 B
17 lines
414 B
class CreateMessages < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :messages do |t|
|
|
t.column :title, :string
|
|
t.column :body, :text, :null => false
|
|
t.column :timestamp, :timestamp, :null => false
|
|
t.column :message_type, :int, :null => false
|
|
#t.column :sender_id, :int, :null => false
|
|
t.column :receiver_id, :int
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :messages
|
|
end
|
|
end
|