Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rubygems"
- require "active_record"
- ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
- ActiveRecord::Schema.define { create_table(:things) {|t| t.timestamp :hugged_at } }
- class Thing < ActiveRecord::Base
- end
- p Thing.create!("hugged_at(1i)" => "1986", "hugged_at(2i)" => "8", "hugged_at(3i)" => "22").hugged_at
- # => Fri Aug 22 00:00:00 +0200 1986
Add Comment
Please, Sign In to add comment