Add result_computed to GroupOrderArticle

This commit is contained in:
wvengen 2014-01-03 10:07:03 +01:00
parent a439f26b67
commit 7aae7f4d55
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,7 @@
class AddResultComputedToGroupOrderArticles < ActiveRecord::Migration
def change
add_column :group_order_articles, :result_computed,
:decimal, :precision => 8, :scale => 3,
:null => false, :default => 0
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20130930132511) do
ActiveRecord::Schema.define(:version => 20140102170431) do
create_table "article_categories", :force => true do |t|
t.string "name", :default => "", :null => false
@ -101,6 +101,7 @@ ActiveRecord::Schema.define(:version => 20130930132511) do
t.integer "tolerance", :default => 0, :null => false
t.datetime "updated_on", :null => false
t.decimal "result", :precision => 8, :scale => 3
t.decimal "result_computed", :precision => 8, :scale => 3
end
add_index "group_order_articles", ["group_order_id", "order_article_id"], :name => "goa_index", :unique => true