Sha256: ba11a20db6b009dfe5625bad44691b92dc2de2405c0b00ac145af134e9874849

Contents?: true

Size: 459 Bytes

Versions: 3

Compression:

Stored size: 459 Bytes

Contents

Sequel.migration do
  change do
    create_table(:users) do
      primary_key :id
      String :username, required: true, null: false, unique: true
      String :email, required: true, null: false, unique: true

      TrueClass :active, null: false, default: 1
      TrueClass :admin, null: false, default: 0

      DateTime :created
      DateTime :updated

      unique :username
      unique :email
      index :active
      index :admin
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telemetry-snmp-0.3.0 lib/telemetry/snmp/data/migrations/007_create_users.rb
telemetry-snmp-0.2.0 lib/telemetry/snmp/data/migrations/007_create_users.rb
telemetry-snmp-0.1.0 lib/telemetry/snmp/data/migrations/007_create_users.rb