Skip to content

Instantly share code, notes, and snippets.

@we4tech
Created June 20, 2012 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save we4tech/2958014 to your computer and use it in GitHub Desktop.
Save we4tech/2958014 to your computer and use it in GitHub Desktop.
Sample flexi-model code
class Product
include FlexiModel
flexi_field :name, :string
flexi_field :price, :decimal
set_flexi_partition_id USER.store.id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment