13 lines
205 B
Ruby
13 lines
205 B
Ruby
|
class CreateAssets < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :assets do |t|
|
||
|
t.polymorphic :assetable
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :assets
|
||
|
end
|
||
|
end
|