Sha256: d57fa6d5b0d6a301a3795fae84113737f02cd24a49a6146f8fca8d96c18c51df

Contents?: true

Size: 599 Bytes

Versions: 60

Compression:

Stored size: 599 Bytes

Contents

class CreateFlipperTablesSequel < Sequel::Migration
  def up
    create_table :flipper_features do |_t|
      String :key, primary_key: true, null: false
      DateTime :created_at, null: false
      DateTime :updated_at, null: false
    end

    create_table :flipper_gates do |_t|
      String :feature_key, null: false
      String :key, null: false
      String :value
      DateTime :created_at, null: false
      DateTime :updated_at, null: false
      primary_key [:feature_key, :key, :value]
    end
  end

  def down
    drop_table :flipper_gates
    drop_table :flipper_features
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
flipper-sequel-0.23.0 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.22.2 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.22.1 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.22.0 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.21.0 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.21.0.rc2 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.21.0.rc1 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.4 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.3 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.2 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.1 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.0 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.0.beta3 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.0.beta2 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.20.0.beta1 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.19.1 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.19.0 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.18.0 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.17.2 lib/generators/flipper/templates/sequel_migration.rb
flipper-sequel-0.17.1 lib/generators/flipper/templates/sequel_migration.rb