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