update for rails 4.1 session change and latest AS
support bach_create_by_column on non-association column