Sha256: 775a530a98189ab6df9f562baa18e7a5f15f49ddfdf626a287c27e71141a70e6
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
class SetupActiveRecordRollout < ActiveRecord::Migration def change create_table :active_record_rollout_features do |t| t.string :name t.integer :failure_count, default: 0 t.timestamps end add_index :active_record_rollout_features, :name, unique: true create_table :active_record_rollout_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 :active_record_rollout_flags, :type add_index :active_record_rollout_flags, :feature_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_rollout-0.0.1 | lib/generators/templates/migration.rb |