Sha256: fb0f1246386524664cbec552effd5475ec79640064fe6f4546dc883df40263ea

Contents?: true

Size: 450 Bytes

Versions: 8

Compression:

Stored size: 450 Bytes

Contents

require 'marty/migrations'

class CreateMartyPostings < McflyAppendOnlyMigration
  include Marty::Migrations

  def change
    create_table :marty_postings do |t|
      t.string :name, null: false
      t.references :posting_type, null: false
      t.boolean :is_test, null: false
      t.string :comment, null: false
    end

    add_mcfly_index :marty_postings,
    :name, :posting_type_id, :is_test

    add_fk :postings, :posting_types
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
marty-0.5.15 db/migrate/019_create_marty_postings.rb~
marty-0.5.15 db/migrate/095_create_marty_tags.rb~
marty-0.5.14 db/migrate/019_create_marty_postings.rb~
marty-0.5.14 db/migrate/095_create_marty_tags.rb~
marty-0.5.13 db/migrate/019_create_marty_postings.rb~
marty-0.5.13 db/migrate/095_create_marty_tags.rb~
marty-0.5.12 db/migrate/019_create_marty_postings.rb~
marty-0.5.12 db/migrate/095_create_marty_tags.rb~