Class: InetColumns
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- InetColumns
- Defined in:
- db/migrate/20111203000000_inet_columns.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
8 9 10 11 |
# File 'db/migrate/20111203000000_inet_columns.rb', line 8 def self.down change_column :hosts, :address, :text add_column :hosts, :address6, :text end |
.up ⇒ Object
3 4 5 6 |
# File 'db/migrate/20111203000000_inet_columns.rb', line 3 def self.up change_column :hosts, :address, 'INET using address::INET' remove_column :hosts, :address6 end |