Sha256: cdeac0ad0f64efe2eaa756110d7b09904ffd47af6f8381b47df77f858df8231b

Contents?: true

Size: 387 Bytes

Versions: 28

Compression:

Stored size: 387 Bytes

Contents

class <%= config[:migration_title] %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :<%= config[:policy] %>_roles do |t|
      t.string :permission, null: false
      t.boolean :admin, default: true
      t.boolean :default, default: false
    end

    add_index :<%= config[:policy] %>_roles, :permission, unique: true
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
eucalypt-0.8.0 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.7.2 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.7.1 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.7.0 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.6.2 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.6.1 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.6.0 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.5.4 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.5.3 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.5.2 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.5.1 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.5.0 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.4.2 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.4.1 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.4.0 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.3.5 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.3.4 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.3.3 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.3.2 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
eucalypt-0.3.1 lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt