Sha256: 1dc0babce3e9e414589b3f1147fc5e5d2d3238209cf0287d044f07e6b1cbf944
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
class CreateMartyNotificationsEventTypes < ActiveRecord::Migration[4.2] def up values = ::Marty::Notifications::EventType::VALUES str_values = values.map {|v| ActiveRecord::Base.connection.quote v}.join ',' execute <<-SQL CREATE TYPE marty_notifications_event_types AS ENUM (#{str_values}); SQL end def down execute <<-SQL DROP TYPE marty_notifications_event_types; SQL end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marty-8.2.0 | db/migrate/519_create_marty_notifications_event_types.rb |