Sha256: d64e9240086a2e8433e91c743a3d7f043631e7b1aa3417ed761ad88831c98b91

Contents?: true

Size: 218 Bytes

Versions: 7

Compression:

Stored size: 218 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def self.up
    create_table :roles do |t|
      t.integer :role_id
      t.string  :name
      t.timestamps
    end
  end

  def self.down
    drop_table :roles
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roles_active_record-0.2.5 spec/migrations/many_roles/002_create_roles.rb
roles_active_record-0.2.4 spec/migrations/many_roles/002_create_roles.rb
roles_active_record-0.2.3 spec/migrations/many_roles/002_create_roles.rb
roles_active_record-0.2.2 spec/migrations/many_roles/002_create_roles.rb
roles_active_record-0.2.1 spec/migrations/many_roles/002_create_roles.rb
roles_active_record-0.2.0 spec/migrations/many_roles/002_create_roles.rb
roles_active_record-0.1.0 spec/migrations/many_roles/002_create_roles.rb