Sha256: f4d834f0aa371ec357fbc50edab7d69a76afd7fa16100652abe1ed630915def1

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

class HasManyThroughThroughs < ActiveRecord::Migration
  def self.up
    create_table :has_many_through_throughs do |t|
      t.string :string, :default => 'string'
      t.integer :integer, :default => '1'
      t.integer :has_many_through_id
      t.integer :record_id
      t.datetime :restored_at
      t.timestamps
    end
  end

  def self.down
    drop_table :has_many_through_throughs
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
acts_as_archive-0.4.1 spec/fixtures/db/migrate/005_has_many_through_throughs.rb
rylwin-acts_as_archive-0.4.0 spec/fixtures/db/migrate/005_has_many_through_throughs.rb
acts_as_archive-0.4.0 spec/fixtures/db/migrate/005_has_many_through_throughs.rb
acts_as_archive-0.3.4 spec/fixtures/db/migrate/005_has_many_through_throughs.rb
acts_as_archive-0.3.3 spec/fixtures/db/migrate/005_has_many_through_throughs.rb
acts_as_archive-0.3.2 spec/fixtures/db/migrate/005_has_many_through_throughs.rb