Sha256: eaf2a279f01065fc016ac8f41ca396c946f1c8365120e5140875138bda006c47

Contents?: true

Size: 193 Bytes

Versions: 30

Compression:

Stored size: 193 Bytes

Contents

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

  def self.down
    drop_table :roles
  end
end

Version data entries

30 entries across 14 versions & 1 rubygems

Version Path
roles_active_record-0.2.3 sandbox/create_roles_migration.erb
roles_active_record-0.2.3 spec/migrations/one_role/002_create_roles.rb
roles_active_record-0.2.2 spec/migrations/one_role/002_create_roles.rb
roles_active_record-0.2.2 sandbox/create_roles_migration.erb
roles_active_record-0.2.1 spec/migrations/one_role/002_create_roles.rb
roles_active_record-0.2.1 sandbox/create_roles_migration.erb
roles_active_record-0.2.0 spec/migrations/one_role/002_create_roles.rb
roles_active_record-0.2.0 sandbox/create_roles_migration.erb
roles_active_record-0.1.0 sandbox/create_roles_migration.erb
roles_active_record-0.1.0 spec/migrations/one_role/002_create_roles.rb