class CreateTerms < ActiveRecord::Migration
  def self.up
    create_table :terms do |t|
      t.column :name, :string
      t.column :definition, :text
    end

    Term.create :name => 'IPv6', :definition => <<-EOS
      The successor to IPv4.  Already deployed in some cases and gradually
      spreading, IPv6 provides a huge number of available IP Numbers - over
      a sextillion addresses (theoretically 2128).  IPv6 allows every
      device on the planet to have its own IP Number.'
    EOS

    Term.create :name => 'IRC', :definition => <<-EOS
      Basically a huge multi-user live chat facility. There are a number of
      major IRC servers around the world which are linked to each other.
      Anyone can create a channel and anything that anyone types in a given
      channel is seen by all others in the channel. Private channels can
      (and are) created for multi-person conference calls.
    EOS

    Term.create :name => 'ISDN', :definition => <<-EOS
      Basically a way to move more dataover vexisting regular phone lines.
      ISDN is available to much of the USA and in most markets it is priced
      very comparably to standard analog phone circuits.  It can provide
      speeds of roughly 128,000 bits-per-second over regular phone lines.
      In practice, most people will be limited to 56,000or 64,000
      bits-per-second.
    EOS

    Term.create :name => 'ISP', :definition => <<-EOS
      An institution that provides access to the 
      Internet in some form, usually for money.
    EOS
  end

  def self.down
    drop_table :terms
  end
end