Sha256: 8ff3242d16b04aefff68ed76f17b6e0ebe7eeeb2fd847eeb1521235aaca52402

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

class ConnectsUsersToSites < ActiveRecord::Migration[5.0]
  def change
    create_table :cas_sites_users, id: :uuid do |t|
      t.column :user_id, :uuid, null: false
      t.column :site_id, :uuid, null: false
      t.boolean :author_id, :uuid

      t.timestamps
    end

    add_index :cas_sites_users, [:site_id, :user_id]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20171223134308_connects_users_to_sites.rb
cas-cms-1.0.0.alpha1 db/migrate/20171223134308_connects_users_to_sites.rb
cas-cms-0.1.3 db/migrate/20171223134308_connects_users_to_sites.rb
cas-cms-0.1.2 db/migrate/20171223134308_connects_users_to_sites.rb
cas-cms-0.1.1 db/migrate/20171223134308_connects_users_to_sites.rb