Sha256: 074a73415fa8fa88c72b9fdc6fb491e1cae41416c57f93f81b2c00aca897f501
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
class CreateUsersHasGroups < ActiveRecord::Migration def change create_table :users_has_groups do |t| t.integer :user_id t.integer :user_group_id t.timestamps end add_index :users_has_groups, :user_id add_index :users_has_groups, :user_group_id add_index :users_has_groups, [:user_id, :user_group_id], unique: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guara-0.0.3 | db/migrate/20120729112600_create_users_has_groups.rb |
guara-0.0.1.rc | db/migrate/20120729112600_create_users_has_groups.rb |