Add form fields to set the colours and the sections for the banner

Add migrations to store the information in the database
This commit is contained in:
iagirre
2018-01-09 17:30:11 +01:00
committed by Angel Perez
parent 3e4d095e6f
commit 6d6da8affc
11 changed files with 106 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
class AddSettingsToBanners < ActiveRecord::Migration
def change
add_column :banners, :background_color, :text
add_column :banners, :font_color, :text
end
end

View File

@@ -0,0 +1,9 @@
class CreateBannerSections < ActiveRecord::Migration
def change
create_table :banner_sections do |t|
t.integer :banner_id
t.integer :section
t.timestamps null: false
end
end
end