Sha256: 170bc850640b906e0632764add374012c4ea347caefe0a1d7938427bce0ddcc4

Contents?: true

Size: 269 Bytes

Versions: 7

Compression:

Stored size: 269 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def self.up
    create_table :roles do |t|

      t.string :name
      t.string :title
      t.text   :description

      t.text   :the_role

      t.timestamps
    end
  end

  def self.down
    drop_table :roles
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_role-2.5.4 spec/dummy_app/db/migrate/20120212063249_create_roles.rb
the_role-2.5.3 spec/dummy_app/db/migrate/20120212063249_create_roles.rb
the_role-2.5.2 spec/dummy_app/db/migrate/20120212063249_create_roles.rb
the_role-2.5.1 spec/dummy_app/db/migrate/20120212063249_create_roles.rb
the_role-2.5 spec/dummy_app/db/migrate/20120212063249_create_roles.rb
the_role-2.4 spec/dummy_app/db/migrate/20120212063249_create_roles.rb
the_role-2.3 spec/dummy_app/db/migrate/20120212063249_create_roles.rb