Sha256: 5fed6dbdbe43813938d73cf63b8d87aa4f602ae9d88d8843e218eef918e320cd

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

class CreateTlds < ActiveRecord::Migration
  def self.up
    create_table :tlds do |t|
      t.integer     :registrar_id, :null=>false
      t.string      :tld_name,     :null=>false
      t.integer     :tld_price,    :null=>false
      t.timestamps
    end
    add_index :tlds, :tld_name, :unique => true
  end

  def self.down
    drop_table :tlds
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 db/migrate/20090519052025_create_tlds.rb
smukherjee-openbill-0.1.6 db/migrate/20090519052025_create_tlds.rb
smukherjee-openbill-0.1.7 db/migrate/20090519052025_create_tlds.rb
openbill-0.1.5 db/migrate/20090519052025_create_tlds.rb
openbill-0.1.6 db/migrate/20090519052025_create_tlds.rb