Sha256: 40ce6df4833a9fdba4adb9f1057cb5f78036bd0163f019ebb393daca7ff9131e
Contents?: true
Size: 446 Bytes
Versions: 13
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true class CreatePermissions < ActiveRecord::Migration[4.2] def self.up create_table :permissions, force: true do |t| t.references :user # User who is allowed to access the asset. t.references :asset, polymorphic: true # Creates asset_id and asset_type. t.timestamps end add_index :permissions, :user_id end def self.down drop_table :permissions end end
Version data entries
13 entries across 13 versions & 1 rubygems