2016-12-22 20:00:08 +08:00
|
|
|
class CreateMessages < ActiveRecord::Migration[5.0]
|
|
|
|
def change
|
|
|
|
create_table :messages do |t|
|
|
|
|
t.text :content
|
|
|
|
t.integer :send_user
|
|
|
|
t.integer :recieve_user
|
|
|
|
t.datetime :create_time
|
|
|
|
t.boolean :readed
|
2016-12-22 20:05:38 +08:00
|
|
|
t.timestamps
|
2016-12-22 20:00:08 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|