Remove column - fixing error

This commit is contained in:
Adam
2016-01-22 16:02:29 +01:00
parent 13757d5a7f
commit 63b2506872
2 changed files with 14 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
class DeleteRecipientIdFromCart < ActiveRecord::Migration
def change
remove_column :carts, :recipient_destination_id
end
end

View File

@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160112091903) do ActiveRecord::Schema.define(version: 20160122145944) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@@ -33,7 +33,6 @@ ActiveRecord::Schema.define(version: 20160112091903) do
t.boolean "canceled_on_delivery", default: false t.boolean "canceled_on_delivery", default: false
t.boolean "delivered", default: false t.boolean "delivered", default: false
t.text "internal_note" t.text "internal_note"
t.integer "recipient_destination_id"
end end
create_table "categories", force: :cascade do |t| create_table "categories", force: :cascade do |t|