hello-gem/hello

View on GitHub
db/migrate/3_create_users.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :name

      t.string :role, default: 'onboarding'

      t.string :locale
      t.string :time_zone
      t.string :username

      t.integer :credentials_count, default: 0
      t.integer :accesses_count, default: 0

      t.timestamps
    end
  end
end