Sha256: 37d8ac8e43e76e5f77dcce1d70e5d7c31f0d0084f70f4495e3d1285fbb95699b
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
module WebammToRails module Sources module Migrations class TableDefinition class Presenter def initialize(table_definition:) @table_definition = table_definition end def render if @table_definition.options&.use_uuid.present? "create_table :#{@table_definition.table}, id: :uuid do |t|" else "create_table :#{@table_definition.table} do |t|" end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webamm_to_rails-7.0.1 | lib/webamm_to_rails/sources/migrations/table_definition/presenter.rb |
webamm_to_rails-7.0.0 | lib/webamm_to_rails/sources/migrations/table_definition/presenter.rb |