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

Version Path
sandboxy-2.0.0 examples/rails_example/db/migrate/20170827190815_sandboxy_migration.rb
sandboxy-1.1.1 examples/rails_example/db/migrate/20170827105828_sandboxy_migration.rb
sandboxy-1.1.0 examples/rails_example/db/migrate/20170826222427_sandboxy_migration.rb
sandboxy-1.0.0 examples/rails_example/db/migrate/20170826222427_sandboxy_migration.rb