Module: PersonName::MigrationSupport

Defined in:
lib/person_name/migration_support.rb

Instance Method Summary collapse

Instance Method Details

#person_name(name, *args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/person_name/migration_support.rb', line 4

def person_name(name, *args)
	options = args.extract_options!
	name_parts = PersonName::Name::NAME_PARTS
	name_parts.each do |part|
		column("#{name}_#{part}".to_sym, :string, :null => true)
	end
end