Sha256: 7fe74dad48bbe78c43dd414777073409e37794c10e6f8239ee82df0688a2acd3
Contents?: true
Size: 510 Bytes
Versions: 19
Compression:
Stored size: 510 Bytes
Contents
class StaticAuthorization < ActiveRecord::Migration def self.up create_table :roles do |t| t.string :name t.boolean :is_super end create_table :permitted_actions do |t| t.integer :role_id t.string :controller, :action end create_table :permitted_scopes do |t| t.integer :role_id t.integer :model_name, :scope end end def self.down drop_table :roles drop_table :permitted_actions drop_table :permitted_scopes end end
Version data entries
19 entries across 19 versions & 1 rubygems