class ActsAsBelongableMigration < ActiveRecord::Migration<%= migration_version %> def change create_table :belongings do |t| t.references :belonger, polymorphic: true, index: true t.references :belongable, polymorphic: true, index: true t.string :scope t.integer :position t.timestamps null: false end end end