From 3dcd7886d74ce71dd1ab6dc1eeb8273fa4fb3113 Mon Sep 17 00:00:00 2001 From: iagirre Date: Thu, 25 Jan 2018 09:59:42 +0100 Subject: [PATCH] Add migration to delete the image and styles from banners, in order to use background_color and font_color --- .../20180124143013_remove_image_and_style_from_banners.rb | 6 ++++++ db/schema.rb | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20180124143013_remove_image_and_style_from_banners.rb diff --git a/db/migrate/20180124143013_remove_image_and_style_from_banners.rb b/db/migrate/20180124143013_remove_image_and_style_from_banners.rb new file mode 100644 index 000000000..6ce833437 --- /dev/null +++ b/db/migrate/20180124143013_remove_image_and_style_from_banners.rb @@ -0,0 +1,6 @@ +class RemoveImageAndStyleFromBanners < ActiveRecord::Migration + def change + remove_column :banners, :image + remove_column :banners, :style + end +end diff --git a/db/schema.rb b/db/schema.rb index 916342063..362672c5e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -67,8 +67,6 @@ ActiveRecord::Schema.define(version: 20180519132610) do t.string "title", limit: 80 t.string "description" t.string "target_url" - t.string "style" - t.string "image" t.date "post_started_at" t.date "post_ended_at" t.datetime "hidden_at"