Sha256: c1e08a5a1becffa1475b554e0544337bef1960491fd5e1c9b33252f1dfc4143e
Contents?: true
Size: 319 Bytes
Versions: 15
Compression:
Stored size: 319 Bytes
Contents
class CreateMartyEventOperationEnum < ActiveRecord::Migration[4.2] def change values = Marty::EnumEventOperation.values str_values = values.map {|v| ActiveRecord::Base.connection.quote v}.join ',' execute <<-SQL CREATE TYPE enum_event_operations AS ENUM (#{str_values}) SQL end end
Version data entries
15 entries across 15 versions & 1 rubygems