Sha256: aaa65301a9e892c13d28c7e413b224e2ba9e4028f520739637d02de1f28dc2cd

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

class CreateUserGroups < ActiveRecord::Migration
  def change
    create_table :user_groups do |t|
      t.string :name, :null => false
      t.string :description

      t.integer :lock_version, :default => 0
      t.timestamps
    end

    create_table :members_user_groups, :id => false do |t|
      t.integer :user_group_id, :null => false
      t.integer :member_id, :null => false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 test/dummy/db/migrate/20121121054319_create_user_groups.rb