Sha256: cf8447480cd251e1298d844a00e5bd9cbe1a08c3545d76eb2e63b81cb002ec67

Contents?: true

Size: 579 Bytes

Versions: 10

Compression:

Stored size: 579 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :field_test_memberships do |t|
      t.string :participant_type
      t.string :participant_id
      t.string :experiment
      t.string :variant
      t.datetime :created_at
      t.boolean :converted, default: false
    end

    add_index :field_test_memberships, [:participant_type, :participant_id, :experiment],
      unique: true, name: "index_field_test_memberships_on_participant"
    add_index :field_test_memberships, [:experiment, :created_at]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
field_test-0.7.0 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.6.1 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.6.0 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.5.5 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.5.4 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.5.3 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.5.2 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.5.1 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.5.0 lib/generators/field_test/templates/memberships.rb.tt
field_test-0.4.1 lib/generators/field_test/templates/memberships.rb.tt