diff --git a/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb b/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb new file mode 100644 index 00000000..76d92102 --- /dev/null +++ b/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 3093e9a1..b7803b3b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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