Sha256: 95d8f5ef533ee94e40f304e056e807a9135c8029e0cde0e7b377c9ed5388fe40
Contents?: true
Size: 398 Bytes
Versions: 3
Compression:
Stored size: 398 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems