full_stack_twitter_clone/db/migrate/20220328041830_create_users.rb

12 lines
253 B
Ruby

class CreateUsers < ActiveRecord::Migration[6.1]
def change
create_table :users do |t|
t.string :username, index: { unique: true }
t.string :email, index: { unique: true }
t.string :password
t.timestamps
end
end
end