17 lines
659 B
Ruby
17 lines
659 B
Ruby
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
|