API de comptabilité horaire.
Ви не можете вибрати більше 25 тем Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20210413093535_create_users.rb 354B

1234567891011121314
  1. class CreateUsers < ActiveRecord::Migration[6.1]
  2. def change
  3. create_table :users do |t|
  4. t.string :email, null: false
  5. t.index :email, unique: true
  6. t.string :username, null: false
  7. t.index :username, unique: true
  8. t.string :password_digest
  9. t.boolean :is_admin, default: false
  10. t.timestamps
  11. end
  12. end
  13. end