Sha256: f3d3b730ef4fb05cf5aa13ea33928d5ae1e6b90a891d57986c70b687e797ac30

Contents?: true

Size: 277 Bytes

Versions: 10

Compression:

Stored size: 277 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
    end
  end

  def down
    drop_table :roles
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
challah-0.4.1 db/migrate/20120127150434_create_roles.rb
challah-0.4.0 db/migrate/20120127150434_create_roles.rb
challah-0.3.5 db/migrate/20120127150434_create_roles.rb
challah-0.3.4 db/migrate/20120127150434_create_roles.rb
challah-0.3.3 db/migrate/20120127150434_create_roles.rb
challah-0.3.2 db/migrate/20120127150434_create_roles.rb
challah-0.3.1 db/migrate/20120127150434_create_roles.rb
challah-0.3.0 db/migrate/20120127150434_create_roles.rb
challah-0.2.1 db/migrate/20120127150434_create_roles.rb
challah-0.2.0 db/migrate/20120127150434_create_roles.rb