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-2.1.3 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.1.2 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.1.1 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.1.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.9 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.8 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.7 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.6 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.5 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.4 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.3 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.2 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.1 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-2.0.0 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-1.2.9 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-1.2.8 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-1.2.7 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-1.2.6 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-1.2.5 spec/dummy/db/migrate/20150420000001_create_heads.rb
marty-1.2.4 spec/dummy/db/migrate/20150420000001_create_heads.rb