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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

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