Sha256: f243a1d39f4b30b20431b5cd9eb584709b90c540d5087ed203b9e7e9ad563c27

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

class ActsAsBelongableMigration < ActiveRecord::Migration<%= migration_version %>
    def change
        create_table :belongings do |t|

            t.references :belonger, polymorphic: true, index: true
            t.references :belonging, polymorphic: true, index: true

            t.string :scope
            t.integer :position

            t.timestamps null: false

        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_belongable-1.1.0 lib/generators/templates/migration.rb.erb