- Softwrap mode:
- Toggle
Blob of db/migrate/023_create_cloners.rb
(raw blob data)
| 1 | class CreateCloners < ActiveRecord::Migration |
| 2 | def self.up |
| 3 | create_table :cloners do |t| |
| 4 | t.string :ip |
| 5 | t.string :country_code, :length => 2 |
| 6 | t.string :country |
| 7 | t.datetime :date |
| 8 | t.integer :repository_id |
| 9 | end |
| 10 | end |
| 11 | |
| 12 | def self.down |
| 13 | drop_table :cloners |
| 14 | end |
| 15 | end |
