Sha256: f305d2a9ef2ced6476d155facac56fadcff8a3ac9644ab8e97f4a0cffb860814

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

class ConvertParamsToText < ActiveRecord::Migration
  def self.up
    change_column 'parameters', :value, :text
    change_column 'lookup_values', :value, :text
  end

  def self.down
    change_column 'parameters', :value, :string
    change_column 'lookup_values', :value, :string
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20120607074318_convert_params_to_text.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20120607074318_convert_params_to_text.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20120607074318_convert_params_to_text.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20120607074318_convert_params_to_text.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20120607074318_convert_params_to_text.rb