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

Version Path
marty-14.3.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-14.0.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-13.0.2 db/migrate/200_create_marty_event_operation_enum.rb
marty-11.0.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-10.0.3 db/migrate/200_create_marty_event_operation_enum.rb
marty-10.0.2 db/migrate/200_create_marty_event_operation_enum.rb
marty-10.0.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-9.5.1 db/migrate/200_create_marty_event_operation_enum.rb
marty-9.5.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-9.3.3 db/migrate/200_create_marty_event_operation_enum.rb
marty-9.3.2 db/migrate/200_create_marty_event_operation_enum.rb
marty-9.3.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-8.5.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-8.4.1 db/migrate/200_create_marty_event_operation_enum.rb
marty-8.3.1 db/migrate/200_create_marty_event_operation_enum.rb