Sha256: b80804f95f7e42bab6dd1ec74ffb7ed1a0d3c937211eecc0a2335590478827f1

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

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

    add_index :field_test_memberships, [:experiment, :participant], unique: true
    add_index :field_test_memberships, :participant
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
field_test-0.1.2 lib/generators/field_test/templates/memberships.rb
field_test-0.1.1 lib/generators/field_test/templates/memberships.rb
field_test-0.1.0 lib/generators/field_test/templates/memberships.rb