Sha256: 78b0ed562377c781133a7835dd8143f8e305de81852c5cb34906e01d541c8336
Contents?: true
Size: 388 Bytes
Versions: 4
Compression:
Stored size: 388 Bytes
Contents
class SandboxyMigration < ActiveRecord::Migration[5.1] def self.up create_table :sandboxy, force: true do |t| t.references :sandboxed, polymorphic: true, null: false t.timestamps end add_index :sandboxy, ['sandboxed_id', 'sandboxed_type'], name: 'sandboxy_sandboxed' end def self.down drop_table :sandboxy end end
Version data entries
4 entries across 4 versions & 1 rubygems