Note: everything here is pretty specific to my usage/accounts and not written for public use... You'll probably have to tweak a bunch of stuff.
$ bean-extract config.py ~/Downloads # the csvs should be in here
gem 'unicorn' |
class Game | |
include Mongoid::Document | |
def aliased_attributes | |
attributes.inject({}) { |attrs, (raw_key, raw_value)| | |
attrs[Game.aliased_fields.invert.fetch(raw_key) { raw_key }] = raw_value | |
attrs | |
} | |
end | |
end |
Note: everything here is pretty specific to my usage/accounts and not written for public use... You'll probably have to tweak a bunch of stuff.
$ bean-extract config.py ~/Downloads # the csvs should be in here