houdini/db/migrate/20180703165400_add_campaign_templates.rb
Kasia Jarmołkowicz 5167438f37 Fix migration names
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