These are chat archives for rails-sqlserver/activerecord-sqlserver-adapter

1st
Feb 2015
Sean Griffin
@sgrif
Feb 01 2015 01:41
def load_schema!
  @columns_hash = connection.schema_cache.columns_hash(table_name)
  @columns_hash.each do |name, column|
    define_attribute(
      name,
      column.cast_type,
      default: column.default,
      user_provided_default: false
    )
  end
end
So close
Sean Griffin
@sgrif
Feb 01 2015 02:49
rails/rails@70ac072
Finally
Fucking
Done
Schema detection is no longer magic. It just calls a public API for you automatically
Active Record can exist without schema detection
Sean Griffin
@sgrif
Feb 01 2015 03:58
@metaskills Do you think it's worth writing the rest of the blog posts on the refactoring of the type system for 4.2?
Screen Shot 2015-01-31 at 8.58.20 PM.png
This message was deleted

Sean Griffin does a great job explaining this convoluted process. Warning, it's kind of boring and a chore to read.

I didn't mean for the first one to be boring. :(

Ken Collins
@metaskills
Feb 01 2015 15:20
LOL, I hope you did not take that personally. It more or less spoke to the existing process. That post was a hard read for me personally since I never liked spelunking in that code cave.
And yes, more articles FTW.
Ken Collins
@metaskills
Feb 01 2015 18:48
OK, so today, maybe I might make progress on the DatabaseTask work