New annotation, because of db switch to mysql.

Background: sqlite has some problems with decimal option.
This commit is contained in:
benni 2011-05-07 21:55:24 +02:00
parent c2496aa4fd
commit 46450cebef
60 changed files with 623 additions and 568 deletions

View file

@ -1,18 +1,3 @@
# == Schema Information
#
# Table name: orders
#
# id :integer not null, primary key
# supplier_id :integer
# note :text
# starts :datetime
# ends :datetime
# state :string(255) default("open")
# lock_version :integer default(0), not null
# updated_by_user_id :integer
# foodcoop_result :decimal(8, 2)
#
class Order < ActiveRecord::Base
extend ActiveSupport::Memoizable # Ability to cache method results. Use memoize :expensive_method
acts_as_ordered :order => "ends" # easyier find of next or previous model
@ -226,3 +211,19 @@ class Order < ActiveRecord::Base
end
end
# == Schema Information
#
# Table name: orders
#
# id :integer(4) not null, primary key
# supplier_id :integer(4)
# note :text
# starts :datetime
# ends :datetime
# state :string(255) default("open")
# lock_version :integer(4) default(0), not null
# updated_by_user_id :integer(4)
# foodcoop_result :decimal(8, 2)
#