Sha256: 032e98dff52cd345077c1e0387f44a7eb84a4d8f49fcd84e10a54fbd27cf0670
Contents?: true
Size: 541 Bytes
Versions: 48
Compression:
Stored size: 541 Bytes
Contents
class CreateSpotlightGroups < ActiveRecord::Migration[5.2] def self.up create_table :spotlight_groups do |t| t.string :slug t.text :title t.references :exhibit t.integer :weight, default: 50 t.boolean :published t.timestamps end create_table :spotlight_groups_members, id: false do |t| t.references :group t.references :member, polymorphic: true end end def self.down drop_table :spotlight_groups drop_table :spotlight_groups_members end end
Version data entries
48 entries across 48 versions & 1 rubygems