Sha256: 7f11445bb954016bb0e6037d00dfeca1fdfcba4d2cc5cbf7d184c405a4ea25a8

Contents?: true

Size: 576 Bytes

Versions: 19

Compression:

Stored size: 576 Bytes

Contents

class CreateFlipperTables < ActiveRecord::Migration
  def self.up
    create_table :flipper_features do |t|
      t.string :key, null: false
      t.timestamps null: false
    end
    add_index :flipper_features, :key, unique: true

    create_table :flipper_gates do |t|
      t.string :feature_key, null: false
      t.string :key, null: false
      t.string :value
      t.timestamps null: false
    end
    add_index :flipper_gates, [:feature_key, :key, :value], unique: true
  end

  def self.down
    drop_table :flipper_gates
    drop_table :flipper_features
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
flipper-active_record-0.11.0.beta9 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta8 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta7 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta6 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta5 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta4 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta3 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.11.0.beta1 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.10.2 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.10.1 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.10.0 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.9.2 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.9.1 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.9.0 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.9.0.beta1 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.8.0 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.7.5 lib/generators/flipper/templates/migration.rb
flipper-active_record-0.7.4 lib/generators/flipper/templates/migration.rb
flipper-0.7.3 lib/generators/flipper/templates/migration.rb