Implement simplified commercials workflow
It's now possible to simply enter the url of the third party provider to enter a commercial.
This commit is contained in:
parent
fb7ebab5a0
commit
23664119bd
25 changed files with 220 additions and 194 deletions
11
db/migrate/20150417050953_add_url_to_commercial.rb
Normal file
11
db/migrate/20150417050953_add_url_to_commercial.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue