summaryrefslogtreecommitdiffhomepage
path: root/app/models/game.rb
blob: 1eb75fffefcac7e0d4f9a6fa9c0377e4ac02b920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Game < ApplicationRecord
  enum status: { draft: 0, published: 1 }
  #enum status: { 
  #  draft: 0,
  #  published: 1
  #}
  belongs_to :user
  has_many_attached :game_files
  has_one_attached :zip
  has_one_attached :card_img
  has_one_attached :char_img
  has_one_attached :title_img
  has_and_belongs_to_many :tags
end