scinote-web/db/migrate/20190426185413_create_marvin_js_assets.rb

14 lines
300 B
Ruby
Raw Normal View History

2019-04-27 04:59:38 +08:00
class CreateMarvinJsAssets < ActiveRecord::Migration[5.1]
def change
create_table :marvin_js_assets do |t|
t.bigint :team_id
t.string :description
t.references :object, polymorphic: true
t.timestamps
end
change_column :marvin_js_assets, :id, :bigint
end
end