Sha256: bef51a3296a099ea03a890b8e57417148f21240a8e2e5533b0e8693dc5e9dc5c
Contents?: true
Size: 627 Bytes
Versions: 23
Compression:
Stored size: 627 Bytes
Contents
# This migration comes from discerner (originally 20130220163015) class ReplaceIntegerTypeWithNumeric < ActiveRecord::Migration class ParameterType < ActiveRecord::Base include Discerner::Methods::Models::ParameterCategory end def up parameter_type = Discerner::ParameterType.find_by_name('integer') unless parameter_type.blank? parameter_type.name = 'numeric' parameter_type.save! end end def down parameter_type = Discerner::ParameterType.find_by_name('numeric') unless parameter_type.blank? parameter_type.name = 'integer' parameter_type.save! end end end
Version data entries
23 entries across 23 versions & 1 rubygems