Sha256: 1e7118fc8ed117aa3a04f87af008d3ce37bec957127ef05889b0964afb3b4168
Contents?: true
Size: 509 Bytes
Versions: 12
Compression:
Stored size: 509 Bytes
Contents
class AddTypeToMessagingMessages < ActiveRecord::Migration[5.1] def up add_column :messaging_messages, :type, :string, null: true add_index :messaging_messages, :type ActiveRecord::Base.connection.execute( "update messaging_messages set type = 'Renalware::Messaging::Internal::Message' where type is null;" ) change_column_null(:messaging_messages, :type, false) end def down remove_index :messaging_messages, :type remove_column :messaging_messages, :type end end
Version data entries
12 entries across 12 versions & 1 rubygems