Sha256: 62f71b72729e54019042afacf97bb3cc21083184f063780d6b8ba93f4de9bf5d

Contents?: true

Size: 320 Bytes

Versions: 79

Compression:

Stored size: 320 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

79 entries across 79 versions & 1 rubygems

Version Path
marty-8.2.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-8.0.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-6.1.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-5.2.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-5.1.4 db/migrate/200_create_marty_event_operation_enum.rb
marty-5.1.3 db/migrate/200_create_marty_event_operation_enum.rb
marty-5.1.2 db/migrate/200_create_marty_event_operation_enum.rb
marty-5.1.1 db/migrate/200_create_marty_event_operation_enum.rb
marty-5.1.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-3.1.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-3.0.1 db/migrate/200_create_marty_event_operation_enum.rb
marty-4.0.0.rc2 db/migrate/200_create_marty_event_operation_enum.rb
marty-3.0.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.9.3 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.9.2 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.9.1 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.8.0 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.7.3 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.7.2 db/migrate/200_create_marty_event_operation_enum.rb
marty-2.7.1 db/migrate/200_create_marty_event_operation_enum.rb