Class: AddScopeToHosts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddScopeToHosts
- Defined in:
- db/migrate/20111210000000_add_scope_to_hosts.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
6 7 8 |
# File 'db/migrate/20111210000000_add_scope_to_hosts.rb', line 6 def self.down remove_column :hosts, :scope end |
.up ⇒ Object
2 3 4 |
# File 'db/migrate/20111210000000_add_scope_to_hosts.rb', line 2 def self.up add_column :hosts, :scope, :text end |