Adding name and display_as fields to variants

This commit is contained in:
Rob H
2014-06-04 15:21:31 +10:00
committed by Will Marshall
parent e9f2a8f2cd
commit c915c5fe78
2 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
class AddNameAndDisplayAsToSpreeVariants < ActiveRecord::Migration
def change
add_column :spree_variants, :name, :string
add_column :spree_variants, :display_as, :string
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 => 20140522044009) do
ActiveRecord::Schema.define(:version => 20140604051248) do
create_table "adjustment_metadata", :force => true do |t|
t.integer "adjustment_id"
@@ -681,7 +681,7 @@ ActiveRecord::Schema.define(:version => 20140522044009) do
t.float "variant_unit_scale"
t.string "variant_unit_name"
t.text "notes"
t.integer "primary_taxon_id", :null => false
t.integer "primary_taxon_id"
end
add_index "spree_products", ["available_on"], :name => "index_products_on_available_on"
@@ -962,6 +962,8 @@ ActiveRecord::Schema.define(:version => 20140522044009) do
t.string "cost_currency"
t.float "unit_value"
t.string "unit_description", :default => ""
t.string "name"
t.string "display_as"
end
add_index "spree_variants", ["product_id"], :name => "index_variants_on_product_id"