Sha256: f80b69ab88a7fae37d821dfde6bc19911f0971becfbc2202b672bff0b0e4d2f4

Contents?: true

Size: 447 Bytes

Versions: 16

Compression:

Stored size: 447 Bytes

Contents

require 'marty/migrations'

class CreateMartyPostings < McflyAppendOnlyMigration
  include Marty::Migrations

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

    add_mcfly_index :marty_postings,
    :name, :posting_type_id

    add_fk :postings, :posting_types
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
marty-0.5.28 db/migrate/019_create_marty_postings.rb
marty-0.5.27 db/migrate/019_create_marty_postings.rb
marty-0.5.26 db/migrate/019_create_marty_postings.rb
marty-0.5.25 db/migrate/019_create_marty_postings.rb
marty-0.5.24 db/migrate/019_create_marty_postings.rb
marty-0.5.23 db/migrate/019_create_marty_postings.rb
marty-0.5.21 db/migrate/019_create_marty_postings.rb
marty-0.5.20 db/migrate/019_create_marty_postings.rb
marty-0.5.19 db/migrate/019_create_marty_postings.rb
marty-0.5.18 db/migrate/019_create_marty_postings.rb
marty-0.5.17 db/migrate/019_create_marty_postings.rb
marty-0.5.16 db/migrate/019_create_marty_postings.rb
marty-0.5.15 db/migrate/019_create_marty_postings.rb
marty-0.5.14 db/migrate/019_create_marty_postings.rb
marty-0.5.13 db/migrate/019_create_marty_postings.rb
marty-0.5.12 db/migrate/019_create_marty_postings.rb