Adding not null to temp_controlled field of shipping_categories

This commit is contained in:
Lynne Davis
2015-03-03 16:33:49 +11:00
parent 3ea7ff766a
commit 72a568ffad
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
class AddTemperatureControlledToSpreeShippingCategories < ActiveRecord::Migration
def change
add_column :spree_shipping_categories, :temperature_controlled, :boolean
add_column :spree_shipping_categories, :temperature_controlled, :boolean, null: false, default: false
end
end

View File

@@ -863,7 +863,7 @@ ActiveRecord::Schema.define(:version => 20150220035501) do
t.string "name"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "temperature_controlled"
t.boolean "temperature_controlled", :null => false
end
create_table "spree_shipping_methods", :force => true do |t|