diff --git a/db/migrate/20180418025217_add_is_default_to_credit_card.rb b/db/migrate/20180418025217_add_is_default_to_credit_card.rb new file mode 100644 index 0000000000..c39b3e44dc --- /dev/null +++ b/db/migrate/20180418025217_add_is_default_to_credit_card.rb @@ -0,0 +1,5 @@ +class AddIsDefaultToCreditCard < ActiveRecord::Migration + def change + add_column :spree_credit_cards, :is_default, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 5b1433fc00..787c37c227 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 => 20180316034336) do +ActiveRecord::Schema.define(:version => 20180418025217) do create_table "account_invoices", :force => true do |t| t.integer "user_id", :null => false @@ -490,12 +490,13 @@ ActiveRecord::Schema.define(:version => 20180316034336) do t.string "start_year" t.string "issue_number" t.integer "address_id" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false t.string "gateway_customer_profile_id" t.string "gateway_payment_profile_id" t.integer "user_id" t.integer "payment_method_id" + t.boolean "is_default", :default => false end add_index "spree_credit_cards", ["payment_method_id"], :name => "index_spree_credit_cards_on_payment_method_id"