Sha256: 9de2890174c4e078af92265d2ddf89569b6dc11d62743853a50fb53e5d45650c

Contents?: true

Size: 105 Bytes

Versions: 6

Compression:

Stored size: 105 Bytes

Contents

class User < ApplicationRecord
  scanning column_name: "role"

  enum :role, { normal: 0, admin: 1 }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snapcher-0.1.5 sample-app/app/models/user.rb
snapcher-0.1.4 sample-app/app/models/user.rb
snapcher-0.1.3 sample-app/app/models/user.rb
snapcher-0.1.2 sample-app/app/models/user.rb
snapcher-0.1.1 sample-app/app/models/user.rb
snapcher-0.1.0 sample-app/app/models/user.rb