97bcdf1853
SQLite columns lengths are purely informational, so we'll enforce the limits via a concern that checks the lengths from the schema.
10 lines
206 B
Ruby
10 lines
206 B
Ruby
class ApplicationRecord < ActiveRecord::Base
|
|
primary_abstract_class
|
|
|
|
include ColumnLimits
|
|
|
|
configure_replica_connections
|
|
|
|
attribute :id, :uuid, default: -> { ActiveRecord::Type::Uuid.generate }
|
|
end
|