Sha256: 24e81a3b7b82e7dd7199d34855292b7681c2e63bc4af41ca7344818e0499eff1

Contents?: true

Size: 629 Bytes

Versions: 6

Compression:

Stored size: 629 Bytes

Contents

class AddGlobalize < ActiveRecord::Migration
	def up
		require "generators/active_record_survey/templates/migration_0.1.0"
		require "generators/active_record_survey/templates/migration_0.1.26"

		AddActiveRecordSurvey.up
		Update_0_1_26_ActiveRecordSurvey.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

6 entries across 6 versions & 1 rubygems

Version Path
active_record_survey_api-0.0.19 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.18 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.17 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.14 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.12 db/migrate/20151002131904_add_globalize.rb
active_record_survey_api-0.0.11 db/migrate/20151002131904_add_globalize.rb