Sha256: 2b38feddd4617b9168d5b25233245fdea88dd211f700cad71bdae83ca85b6674
Contents?: true
Size: 420 Bytes
Versions: 8
Compression:
Stored size: 420 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems