parent
850beb72e1
commit
2a731e8350
31 changed files with 491 additions and 57 deletions
10
db/migrate/20140801103645_create_commercials.rb
Normal file
10
db/migrate/20140801103645_create_commercials.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateCommercials < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :commercials do |t|
|
||||
t.string :commercial_id
|
||||
t.string :commercial_type
|
||||
t.references :commercialable, polymorphic: true
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue