Remove no longer needed migrations, Image will be a separate table
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
4f54f4e6bb
commit
718336ce89
@@ -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
|
||||
@@ -1,5 +0,0 @@
|
||||
class AddImageDescriptionToBudgetInvestments < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :budget_investments, :image_description, :string
|
||||
end
|
||||
end
|
||||
@@ -1,5 +0,0 @@
|
||||
class RenameImageDescriptionToImageTitleOnBudgetInvestments < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :budget_investments, :image_description, :image_title
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user