Class: CreateQueryservers
- Defined in:
- lib/six-updater-web/db/migrate/20100327164004_create_queryservers.rb
Class Method Summary collapse
- .down ⇒ Object
-
.up ⇒ Object
ActiveRecord::Base.establish_connection ActiveRecord::Base.configurations[“#ENV</a>2”].
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'lib/six-updater-web/db/migrate/20100327164004_create_queryservers.rb', line 15 def self.down drop_table :queryservers end |
.up ⇒ Object
ActiveRecord::Base.establish_connection ActiveRecord::Base.configurations[“#ENV</a>2”]
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/six-updater-web/db/migrate/20100327164004_create_queryservers.rb', line 3 def self.up create_table :queryservers do |t| t.string :name t.string :ip t.integer :port t.text :content, :limit => 1024*1024 t.integer :failures, :default => 0 t. :lock_version => false end end |