Sha256: 53e0ed28366df673555aa9e276c5347ca6920667663788ae5a16b7d35cea9f92
Contents?: true
Size: 429 Bytes
Versions: 14
Compression:
Stored size: 429 Bytes
Contents
class CreatePeriodicalAndManifestations < ActiveRecord::Migration[5.2] def change create_table :periodical_and_manifestations do |t| t.references :periodical, foreign_key: true, null: false t.references :manifestation, foreign_key: true, null: false t.boolean :periodical_master, default: false, null: false, index: {where: 'periodical_master IS true', unique: true} t.timestamps end end end
Version data entries
14 entries across 14 versions & 8 rubygems