Sha256: c808aafbfde86ce8235669c98bcac14b1bde65662fedee68263f3e26e65777c8
Contents?: true
Size: 605 Bytes
Versions: 14
Compression:
Stored size: 605 Bytes
Contents
class CreateAcls < ActiveRecord::Migration def self.up create_table :acls do |t| t.string :name, :limit => 30 t.string :description t.string :query t.string :action t.integer :site_id t.integer :user_id t.integer :group_id t.integer :exec_group_id t.integer :exec_skin_id t.integer :priority t.timestamps end add_column :users, :use_acls, :boolean add_index :acls, ["site_id"] add_index :acls, ["group_id"] add_index :acls, ["group_id", "action", "site_id"] end def self.down drop_table :acls end end
Version data entries
14 entries across 14 versions & 1 rubygems