1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-11 05:54:15 +01:00
fab-manager/db/migrate/20150429092109_create_assets.rb
2015-05-05 03:10:25 +02:00

12 lines
224 B
Ruby

class CreateAssets < ActiveRecord::Migration
def change
create_table :assets do |t|
t.references :viewable, polymorphic: true
t.string :attachment
t.string :type
t.timestamps
end
end
end