diff --git a/db/migrate/20161215032136_add_enable_standing_orders_to_enterprises.rb b/db/migrate/20161215032136_add_enable_standing_orders_to_enterprises.rb new file mode 100644 index 0000000000..3bd4ad13cb --- /dev/null +++ b/db/migrate/20161215032136_add_enable_standing_orders_to_enterprises.rb @@ -0,0 +1,5 @@ +class AddEnableStandingOrdersToEnterprises < ActiveRecord::Migration + def change + add_column :enterprises, :enable_standing_orders, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 11dee86282..59a78faeef 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -248,6 +248,7 @@ ActiveRecord::Schema.define(:version => 20170921065259) do t.boolean "display_invoice_logo", :default => false t.boolean "allow_order_changes", :default => false, :null => false t.string "contact_name" + t.boolean "enable_standing_orders", :default => false, :null => false end add_index "enterprises", ["address_id"], :name => "index_enterprises_on_address_id"