Sha256: dbdef098bc04fa6982561acf673276d1d013c269f4e255e778248a5b2c9f5a79

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

require 'active_record/connection_adapters/abstract_adapter'

module ActiveRecord
  module ConnectionAdapters
    class TableDefinition

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
person-name-0.2.4 lib/person_name/migration_support.rb