Sha256: 844dc04b8642e8b164bb087e9f05f1c0a63109d843795ddf1742020f13de65dc

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

class Create<%= table_name.capitalize %> < ActiveRecord::Migration
  def change
    create_table :<%= table_name %> do |t|
      t.integer :<%= options[:source] %>_id
      t.integer :target_<%= options[:target] %>_id

      t.timestamps null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_in_relation-0.2.2 lib/generators/acts_in_relation/templates/create.rb.erb
acts_in_relation-0.2.1 lib/generators/acts_in_relation/templates/create.rb.erb