Sha256: 606192e9113740f8e096b1b705760c5c3690615a974365e769066642fb7e90b1
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 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 add_index :field_test_memberships, [:experiment, :created_at] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
field_test-0.2.1 | lib/generators/field_test/templates/memberships.rb |
field_test-0.2.0 | lib/generators/field_test/templates/memberships.rb |