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