guoren/db/migrate/20161126101925_create_messa...

13 lines
269 B
Ruby
Raw Permalink Normal View History

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