Class: AddRoutesTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddRoutesTable
- Defined in:
- db/migrate/20110415175705_add_routes_table.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 16 17 |
# File 'db/migrate/20110415175705_add_routes_table.rb', line 13 def self.down drop_table :routes add_column :sessions, :routes, :string end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'db/migrate/20110415175705_add_routes_table.rb', line 3 def self.up create_table :routes do |t| t.integer :session_id t.string :subnet t.string :netmask end remove_column :sessions, :routes end |