Sha256: c15d1ef2c00af5518e718174a1225d3a8909c2f9393e173981b12aa5f6c4ff81
Contents?: true
Size: 915 Bytes
Versions: 4
Compression:
Stored size: 915 Bytes
Contents
class SetupDetour < ActiveRecord::Migration def change create_table :detour_features do |t| t.string :name t.integer :failure_count, default: 0 t.text :flag_in_counts, default: "{}" t.text :opt_out_counts, default: "{}" t.timestamps end add_index :detour_features, :name, unique: true create_table :detour_flags do |t| t.string :type t.integer :feature_id t.integer :flaggable_id t.string :flaggable_type t.string :group_name t.integer :percentage t.timestamps end add_index :detour_flags, :type add_index :detour_flags, :feature_id add_index :detour_flags, [:type, :feature_id, :flaggable_type, :flaggable_id], name: "flag_type_feature_flaggable_type_id" add_index :detour_flags, [:type, :feature_id, :flaggable_type], name: "flag_type_feature_flaggable_type" end end
Version data entries
4 entries across 2 versions & 1 rubygems