Sha256: 32562f2a52b8ebbefd98b097b016efa7d7e95f961e77816fa6c088e14b30347b

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

class CreateControllers < ActiveRecord::Migration
  def self.up
    create_table :controllers do |t|
      t.column :path, :string, :null => false
      t.column :description, :text
    end
    add_index :controllers, :path, :unique => true
  end

  def self.down
    drop_table :controllers
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_roles-0.0.2 db/migrate/001_create_controllers.rb