houdini/db/migrate/201810202124316_add_campaign_templates.rb
Kasia Jarmołkowicz b99f7959ce Add CampaignTemplate
Read S3 bucket name and AWS region from env

Add /postgres-data to .gitignore

Custom campaign layout

Adjust custom layout

wip fix wizard init on campaign page

wip adjust design

adjust campaigner profile section

wider banner, fix button colours

Fix custom layout

Add custom_layout to nonprofit and render, if exists

Fallback profile picture

wip
2018-11-21 11:00:44 -06:00

22 lines
485 B
Ruby

class AddCampaignTemplates < ActiveRecord::Migration
def change
create_table :campaign_templates do |t|
t.string :template_name, null: false
t.string :name
t.string :tagline
t.integer :goal_amount
t.string :main_image
t.text :video_url
t.string :vimeo_video_id
t.string :youtube_video_id
t.text :summary
t.text :body
t.timestamps
end
change_table :campaigns do |t|
t.references :campaign_template
end
end
end