Class: CreateUsageStatistics
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUsageStatistics
- Defined in:
- lib/migrations/1_create_usage_statistics.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
16 17 18 19 20 |
# File 'lib/migrations/1_create_usage_statistics.rb', line 16 def down puts "Dropping table..." drop_table(:usage_statistics) puts "Done dropping table." end |
#up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/migrations/1_create_usage_statistics.rb', line 3 def up create_table(:usage_statistics) do |t| t.string :shard_name t.string :method t.string :adapter t.string :username t.string :thread_id t.integer :port t.string :host t.string :database_name end end |