Sha256: d9a889f3b7204f9396a34e887c5c65edd6c392d53d44334fb88afb8f7624eb51

Contents?: true

Size: 314 Bytes

Versions: 13

Compression:

Stored size: 314 Bytes

Contents

class CreateFeatureGateGatedFeatures < ActiveRecord::Migration
  def change
    create_table :feature_gate_gated_features do |t|
      t.text :name, null: false
      t.boolean :gated, default: true, null: false
      t.timestamps
    end

    add_index :feature_gate_gated_features, :name, unique: true
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
feature_gate-0.2.4 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.2.3 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.2.2 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.2.1 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.2.0 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.9 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.8 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.7 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.6 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.5 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.4 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.3 lib/generators/feature_gate/templates/migration.rb
feature_gate-0.1.2 lib/generators/feature_gate/templates/migration.rb