osem-fcy/db/migrate/20150417050953_add_url_to_commercial.rb
chrisbr 23664119bd Implement simplified commercials workflow
It's now possible to simply enter the url of the third party provider to enter a commercial.
2016-01-21 19:41:12 +01:00

11 lines
284 B
Ruby

class AddUrlToCommercial < ActiveRecord::Migration
class TempCommercial< ActiveRecord::Base
self.table_name = 'commercials'
end
def change
add_column :commercials, :url, :string
# Don't delete commercial_type and commercial_id for backward compatibility
end
end