Class: Piece

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/piece.rb

Overview

Schema Information

Table name: pieces

Columns

Name Type Attributes
body text not null
created_at datetime not null
id uuid not null, primary key
name string not null
snippet_id uuid not null, indexed
updated_at datetime not null

Indexes

  • pieces_ix_snippet_id:
    • snippet_id

Constant Summary collapse

DEFAULT_NAME_PREFIX =
'piece'.freeze