Sha256: d267fa14b8ee756ec54511350cafc700e8d91b48f219cf58a53960bb23e8d9af

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= table_name %> do |t|
      t.column :<%= first_id_column %>, :integer
      t.column :<%= second_id_column %>, :integer
    end
  end

  def self.down
    drop_table :<%= table_name %>
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_many_through_generator-0.4.0 templates/migration_manytomany.rb