Sha256: 1b465fb975e8f3cea4f007af0e395e0568b89547d25386b599290359985b3541

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

class AddGlobalize < ActiveRecord::Migration
	def up
		add_column ::ActiveRecordSurvey::Survey.arel_table, :name, :string, :default => ''

		::ActiveRecordSurvey::Node.create_translation_table!(
			:text => {
				:type => :string,
				:null => false,
				:default => '',
			}
		)
	end

	def down
		remove_column ::ActiveRecordSurvey::Survey.arel_table, :name
		::ActiveRecordSurvey::Node.drop_translation_table!
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_record_survey_api-0.0.7 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.6 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.4 db/migrate/20151002131904_add_globalize.rb