From 718336ce89ef2d84b25448691fa66e057d6a83c8 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Tue, 27 Jun 2017 11:26:49 +0200 Subject: [PATCH] Remove no longer needed migrations, Image will be a separate table --- ...4459_add_attachment_image_to_budget_investments.rb | 11 ----------- ...945_add_image_description_to_budget_investments.rb | 5 ----- ...escription_to_image_title_on_budget_investments.rb | 5 ----- db/schema.rb | 5 ----- 4 files changed, 26 deletions(-) delete mode 100644 db/migrate/20170606094459_add_attachment_image_to_budget_investments.rb delete mode 100644 db/migrate/20170614111945_add_image_description_to_budget_investments.rb delete mode 100644 db/migrate/20170620105137_rename_image_description_to_image_title_on_budget_investments.rb diff --git a/db/migrate/20170606094459_add_attachment_image_to_budget_investments.rb b/db/migrate/20170606094459_add_attachment_image_to_budget_investments.rb deleted file mode 100644 index c0b6b2393..000000000 --- a/db/migrate/20170606094459_add_attachment_image_to_budget_investments.rb +++ /dev/null @@ -1,11 +0,0 @@ -class AddAttachmentImageToBudgetInvestments < ActiveRecord::Migration - def self.up - change_table :budget_investments do |t| - t.attachment :image - end - end - - def self.down - remove_attachment :budget_investments, :image - end -end diff --git a/db/migrate/20170614111945_add_image_description_to_budget_investments.rb b/db/migrate/20170614111945_add_image_description_to_budget_investments.rb deleted file mode 100644 index baa873dd6..000000000 --- a/db/migrate/20170614111945_add_image_description_to_budget_investments.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddImageDescriptionToBudgetInvestments < ActiveRecord::Migration - def change - add_column :budget_investments, :image_description, :string - end -end diff --git a/db/migrate/20170620105137_rename_image_description_to_image_title_on_budget_investments.rb b/db/migrate/20170620105137_rename_image_description_to_image_title_on_budget_investments.rb deleted file mode 100644 index 20734a348..000000000 --- a/db/migrate/20170620105137_rename_image_description_to_image_title_on_budget_investments.rb +++ /dev/null @@ -1,5 +0,0 @@ -class RenameImageDescriptionToImageTitleOnBudgetInvestments < ActiveRecord::Migration - def change - rename_column :budget_investments, :image_description, :image_title - end -end diff --git a/db/schema.rb b/db/schema.rb index 6fb359fee..240abcdaa 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -161,11 +161,6 @@ ActiveRecord::Schema.define(version: 20170918231410) do t.boolean "winner", default: false t.boolean "incompatible", default: false t.integer "community_id" - t.string "image_file_name" - t.string "image_content_type" - t.integer "image_file_size" - t.datetime "image_updated_at" - t.string "image_title" end add_index "budget_investments", ["administrator_id"], name: "index_budget_investments_on_administrator_id", using: :btree