Sha256: 460a74ff25aee7eee4e9729d11ec0e771a8913ceb022a88bbd04c2ef5eef52cb

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

class Post < ApplicationRecord

  # ---------------------------------------- Associations

  belongs_to :author, :class_name => User

  # ---------------------------------------- Attributes

  enum :state => { :draft => 0, :pending => 1, :published => 2 }

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notify_on-1.0.1 spec/dummy/app/models/post.rb