Sha256: bf4e21c8bc21590ae5e79d7be3da7f87840d47e0212e681dface8c0e43fd2fe2

Contents?: true

Size: 260 Bytes

Versions: 186

Compression:

Stored size: 260 Bytes

Contents

class CreateHeads < McflyMigration
  include Marty::Migrations

  def change
    table_name = "heads"

    create_table table_name do |t|
      t.string :name, null: false
      t.text :condition_text
    end

    add_mcfly_unique_index Gemini::Head
  end
end

Version data entries

186 entries across 186 versions & 1 rubygems

Version Path
marty-14.3.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-14.0.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-13.0.2 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-11.0.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-10.0.3 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-10.0.2 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-10.0.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-9.5.1 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-9.5.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-9.3.3 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-9.3.2 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-9.3.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-8.5.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-8.4.1 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-8.3.1 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-8.2.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-8.0.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-6.1.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-5.2.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-5.1.4 spec/dummy/db/migrate/20150420000001_create_heads.rb