vidpush/db/migrate/20140421145349_add_many_fields_to_campaign.rb

17 lines
659 B
Ruby
Raw Normal View History

class AddManyFieldsToCampaign < ActiveRecord::Migration
def change
rename_column :campaigns, :address1, :address
remove_column :campaigns, :address2
add_column :campaigns, :awards, :string
add_column :campaigns, :background, :string
add_column :campaigns, :categories, :string
add_column :campaigns, :companycolors, :string
add_column :campaigns, :description, :string
add_column :campaigns, :facebookurl, :string
add_column :campaigns, :productsandservices, :string
add_column :campaigns, :targetaudience, :string
add_column :campaigns, :tollfreephone, :string
add_column :campaigns, :vpa, :string
end
end