From 4107bc866b5a26254b315afb8c3102ce739a1ead Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 3 Jul 2016 15:37:29 +0200 Subject: Undo changes in original migration. Changing the initial migration makes it nontrivial to upgrade to a newer version of the extension for apps where it's already installed. Don't do that! --- app/views/refinery/banners/admin/banners/_form.html.erb | 8 -------- db/migrate/1_create_banners_banners.rb | 2 -- 2 files changed, 10 deletions(-) diff --git a/app/views/refinery/banners/admin/banners/_form.html.erb b/app/views/refinery/banners/admin/banners/_form.html.erb index c4fbd21..2d6d848 100644 --- a/app/views/refinery/banners/admin/banners/_form.html.erb +++ b/app/views/refinery/banners/admin/banners/_form.html.erb @@ -41,12 +41,6 @@ -
- <%= f.label :category -%> - <%= f.text_field :category -%> - -
- <% if Refinery::I18n.frontend_locales %>
<%= f.label :locale -%> @@ -86,5 +80,3 @@ :delete_title => t('delete', :scope => 'refinery.banners.admin.banners.banner'), :delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @banner.name) %> <% end -%> - - diff --git a/db/migrate/1_create_banners_banners.rb b/db/migrate/1_create_banners_banners.rb index f815020..f9e350a 100644 --- a/db/migrate/1_create_banners_banners.rb +++ b/db/migrate/1_create_banners_banners.rb @@ -11,8 +11,6 @@ class CreateBannersBanners < ActiveRecord::Migration t.date :start_date t.date :expiry_date t.integer :position - t.string :category - t.text :body t.timestamps end -- cgit v1.2.3