Sha256: 0fe4242c5c2d4f1db2b3ffdfc201cfdef80b7376674cae6223c9786e0bf71609

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

class AddCreateKpathToAcl < ActiveRecord::Migration
  def self.up
    add_column :acls, :create_kpath, :string, :limit => 200
    add_index :acls, ["create_kpath", "group_id", "action", "site_id"]
  rescue
    # Could be run twice (was in zena brick by mistake in zena 1.2.4pre)
  end

  def self.down
    remove_column :groups, :auto_publish
    remove_index :acls, :column => ["create_kpath", "group_id", "action", "site_id"]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zena-1.2.8 bricks/acls/zena/migrate/20130313110443_add_create_kpath_to_acl.rb
zena-1.2.7 bricks/acls/zena/migrate/20130313110443_add_create_kpath_to_acl.rb
zena-1.2.6 bricks/acls/zena/migrate/20130313110443_add_create_kpath_to_acl.rb
zena-1.2.5 bricks/acls/zena/migrate/20130313110443_add_create_kpath_to_acl.rb
zena-1.2.4 bricks/acls/zena/migrate/20130313110443_add_create_kpath_to_acl.rb