Sha256: d831e99938e40a3cfa05c4fbc12017cceab46d3fd351f6fdcbf8580a5a0d5770

Contents?: true

Size: 627 Bytes

Versions: 29

Compression:

Stored size: 627 Bytes

Contents

class CreateAccessControlEntries < ActiveRecord::Migration
  def self.up
    create_table :access_control_entries do |t|
      t.string :resource_type
      t.integer :resource_id
      t.integer :user_id
      t.integer :role_id
      t.boolean :can
      t.string :verb
      t.string :serialized_options
      t.timestamps
    end
    add_index :access_control_entries, :resource_type
    add_index :access_control_entries, [:resource_type, :resource_id]
    add_index :access_control_entries, :user_id
    add_index :access_control_entries, :role_id
  end

  def self.down
    drop_table :access_control_entries
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
wheels-0.1.7 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.6 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.5 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.4 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.3 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.2 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.1 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.0 db/migrate/0110_create_access_control_entries.rb
wheels-0.0.49 db/migrate/0110_create_access_control_entries.rb