Sha256: 7430f9311aea30600a2872e604ab21319daa55ccb2c7a005af7859b865642287

Contents?: true

Size: 375 Bytes

Versions: 6

Compression:

Stored size: 375 Bytes

Contents

class AddEditableIsDefaultAndIndexOnEditableIsDefaultAndNameToSpreeRoles < ActiveRecord::Migration
  def change
    add_column :spree_roles, :editable, :boolean, :default => true
    add_column :spree_roles, :is_default, :boolean, :default => false

    add_index(:spree_roles, :name)
    add_index(:spree_roles, :is_default)
    add_index(:spree_roles, :editable)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_admin_roles_and_access-2.0.0 db/migrate/20130709105614_add_editable_is_default_and_index_on_editable_is_default_and_name_to_spree_roles.rb
spree_admin_roles_and_access-1.3.0 db/migrate/20130709105614_add_editable_is_default_and_index_on_editable_is_default_and_name_to_spree_roles.rb
spree_admin_roles_and_access-1.2.1 db/migrate/20130709105614_add_editable_is_default_and_index_on_editable_is_default_and_name_to_spree_roles.rb
spree_admin_roles_and_access-1.2.0 db/migrate/20130709105614_add_editable_is_default_and_index_on_editable_is_default_and_name_to_spree_roles.rb
spree_admin_roles_and_access-1.1.0 db/migrate/20130709105614_add_editable_is_default_and_index_on_editable_is_default_and_name_to_spree_roles.rb
spree_admin_roles_and_access-1.0.0 db/migrate/20130709105614_add_editable_is_default_and_index_on_editable_is_default_and_name_to_spree_roles.rb