guoren/db/migrate/20161126085652_create_users.rb

15 lines
300 B
Ruby
Raw Permalink Normal View History

2016-12-22 20:00:08 +08:00
class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
t.string :name, unique: true
t.string :email, unique: true
t.string :picurl
t.string :profession
t.string :academy
t.boolean :sexual
t.timestamps
end
end
end