Sha256: 019f5ae3069727cad6f7a8bf5addea1fb7e4a4fcb292c590be8fc8d3a86490d0

Contents?: true

Size: 185 Bytes

Versions: 4

Compression:

Stored size: 185 Bytes

Contents

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
<% foreign_keys.each do |foreign_key| -%>
    <%= foreign_key.to_dump %>
<% end -%>
  end

  def self.down
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aspgems-foreign_key_migrations-2.0.0.beta2 lib/generators/foreign_key_migrations/templates/migration.rb
aspgems-foreign_key_migrations-2.0.0.beta1 lib/generators/foreign_key_migrations/templates/migration.rb
automatic_foreign_key-1.0.1 generators/foreign_key_migration/templates/migration.rb
automatic_foreign_key-1.0.0 generators/foreign_key_migration/templates/migration.rb