Sha256: 385050bf801faba740aa0707144974480219a84a54ebde1410cdc7dc33b55c45

Contents?: true

Size: 285 Bytes

Versions: 7

Compression:

Stored size: 285 Bytes

Contents

class ReplicationMigration < ActiveRecord::Migration
  def self.up
    create_table :strands do |t|
      t.string :name
      t.text :pairs
      t.references :origin, polymorphic: true, index: true

      t.timestamps
    end
  end

  def self.down
    drop_table :strands
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
replication-0.3.2 db/migrate/714417722_replication_migration.rb
replication-0.3.1 db/migrate/714417722_replication_migration.rb
replication-0.3.0 db/migrate/714417722_replication_migration.rb
replication-0.2.0 db/migrate/714417722_replication_migration.rb
replication-0.1.2 db/migrate/714417722_replication_migration.rb
replication-0.1.1 db/migrate/714417722_replication_migration.rb
replication-0.1.0 db/migrate/714417722_replication_migration.rb