Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created March 18, 2021 15:31
Show Gist options
  • Save BetterProgramming/ff4a19b3a22cddf3c5ef70f03628b874 to your computer and use it in GitHub Desktop.
Save BetterProgramming/ff4a19b3a22cddf3c5ef70f03628b874 to your computer and use it in GitHub Desktop.
# == Schema Information
#
# Table name: users
#
# id :bigint(8) not null, primary key
# status :integer(4) default("pending")
class User < ApplicationRecord
enum status: {
pending: 0,
active: 1,
archived: 2
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment