Sha256: 3837a4de6e66aa3993f4ec06c73429ac25b1412af8f43916d66e3181cec10cc3

Contents?: true

Size: 198 Bytes

Versions: 14

Compression:

Stored size: 198 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def self.up
    create_table :roles do |t|
      t.column :name, :string, :null => false
    end
  end

  def self.down
    drop_table :roles
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
roles_active_record-0.4.0 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.3.6 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.3.5 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.3.4 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.3.3 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.3.2 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.3.1 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.2.5 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.2.4 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.2.3 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.2.2 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.2.1 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.2.0 sandbox/migrate/201002508_create_roles.rb
roles_active_record-0.1.0 sandbox/migrate/201002508_create_roles.rb