Sha256: fde85606669942196cef2e9aa8d5ebcd528763dd5dcbb74c9c3c732d17a3c0a5

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

class CreatePermissions < ActiveRecord::Migration
  def up
    create_table :permissions do |t|
      t.string      :name
      t.text        :description
      t.string      :key, :limit => 50
      t.boolean     :locked, :default => false
    end

    add_index :permissions, :key
  end

  def down
    drop_table :permissions
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
challah-rolls-0.2.0 db/migrate/20120127150435_create_permissions.rb
challah-rolls-0.1.1 db/migrate/20120127150435_create_permissions.rb
challah-rolls-0.1.0 db/migrate/20120127150435_create_permissions.rb
challah-0.6.2 db/migrate/20120127150435_create_permissions.rb
challah-0.6.1 db/migrate/20120127150435_create_permissions.rb
challah-0.6.0 db/migrate/20120127150435_create_permissions.rb