Sha256: f9ea4f7c78f5618ffb50ae1990e0262af0200cd09630cbc38f1692d67b2196d0

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

class CreateHatchyBanks < ActiveRecord::Migration
  def change
    create_table :hatchy_banks do |t|
      t.string  :name, null: false, limit: 80
      t.string  :code, null: false, limit: 10
      t.timestamps
    end
    add_index :hatchy_banks, :code, unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre db/migrate/20160111174945_create_hatchy_banks.rb
hatchy-0.0.7.pre db/migrate/20160111174945_create_hatchy_banks.rb
hatchy-0.0.6.pre db/migrate/20160111174945_create_hatchy_banks.rb
hatchy-0.0.5.pre db/migrate/20160111174945_create_hatchy_banks.rb