Sha256: 84d16b9c808a4b94d1284715e0e1b76cd760d1597276956c6841c2a85b6daceb

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

class CreateSpecialPermissions < ActiveRecord::Migration
  def self.up
    create_table :special_permissions do |t|
      t.integer :user_id
      t.string :permission_module
      t.boolean :permission_read, :default => false
      t.boolean :permission_write, :default => false
      t.boolean :permission_destroy, :default => false
      t.boolean :permission_update, :default => false
      t.timestamps
    end
  end

  def self.down
    drop_table :special_permissions
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thelinuxlich-aegis-1.1.9 lib/generators/aegis/templates/migration.rb
thelinuxlich-aegis-1.1.8 lib/generators/aegis/templates/migration.rb