summaryrefslogtreecommitdiff
path: root/db/migrate/20130617095603_create_users_groups.rb
blob: 4ba7d0c9461c4699ab3f38f6e0f33a9c8269142c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# rubocop:disable all
class CreateUsersGroups < ActiveRecord::Migration
  DOWNTIME = false

  def change
    create_table :users_groups do |t|
      t.integer :group_access, null: false
      t.integer :group_id, null: false
      t.integer :user_id, null: false

      t.timestamps null: true
    end
  end
end