diff --git a/db/migrate/20200209163549_change_cvv_response_message_to_text_in_spree_payments.rb b/db/migrate/20200209163549_change_cvv_response_message_to_text_in_spree_payments.rb new file mode 100644 index 0000000000..5e2e8d88ad --- /dev/null +++ b/db/migrate/20200209163549_change_cvv_response_message_to_text_in_spree_payments.rb @@ -0,0 +1,9 @@ +class ChangeCvvResponseMessageToTextInSpreePayments < ActiveRecord::Migration + def up + change_column :spree_payments, :cvv_response_message, :text + end + + def down + change_column :spree_payments, :cvv_response_message, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index cbac7ede25..e064256c53 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 => 20191202165700) do +ActiveRecord::Schema.define(:version => 20200209163549) do create_table "adjustment_metadata", :force => true do |t| t.integer "adjustment_id" @@ -601,7 +601,7 @@ ActiveRecord::Schema.define(:version => 20191202165700) do t.string "avs_response" t.string "identifier" t.string "cvv_response_code" - t.string "cvv_response_message" + t.text "cvv_response_message" end add_index "spree_payments", ["order_id"], :name => "index_spree_payments_on_order_id"