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.30 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.28 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.27 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.25 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.24 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.23 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.22 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.21 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.20 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.19 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.18 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.17 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.16 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.15 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.14 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.13 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.12 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.10 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.9 db/migrate/0110_create_access_control_entries.rb
wheels-0.1.8 db/migrate/0110_create_access_control_entries.rb