Sha256: f7cb10fb7b97bebbf2150b2da9dd2a39816fdd7eef378015e9c235dc5c89067e

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :field_test_events do |t|
      t.integer :field_test_membership_id
      t.string :name
      t.timestamp :created_at
    end

    add_index :field_test_events, :field_test_membership_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
field_test-0.2.4 lib/generators/field_test/templates/events.rb.tt
field_test-0.2.3 lib/generators/field_test/templates/events.rb
field_test-0.2.2 lib/generators/field_test/templates/events.rb