Sha256: d277108ac7b76f3eb3a0db8a65bf2bee1892cb7885d0506467250e2f75bf416c

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def up
    create_table :roles do |t|
      t.string :name
      t.text :description
      t.string :default_path, :default => '/'
      t.boolean :locked, :default => false
      t.timestamps
    end
  end

  def down
    drop_table :roles
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
challah-0.5.4 db/migrate/20120127150434_create_roles.rb
challah-0.5.3 db/migrate/20120127150434_create_roles.rb
challah-0.5.2 db/migrate/20120127150434_create_roles.rb
challah-0.5.1 db/migrate/20120127150434_create_roles.rb
challah-0.5.0 db/migrate/20120127150434_create_roles.rb