Commit b8f5baf8dd19a40df4b6a94e9eb3b0eeb4bf4597
- Diff rendering mode:
- inline
- side by side
db/migrate/station_2_to_3.rb
(18 / 0)
|   | |||
| 14 | 14 | t.timestamps | |
| 15 | 15 | t.datetime :processed_at | |
| 16 | 16 | end | |
| 17 | |||
| 18 | create_table :source_importations do |t| | ||
| 19 | t.references :source | ||
| 20 | t.references :importation, :polymorphic => true | ||
| 21 | t.string :guid | ||
| 22 | t.timestamps | ||
| 23 | end | ||
| 24 | |||
| 25 | create_table :sources do |t| | ||
| 26 | t.references :uri | ||
| 27 | t.string :content_type | ||
| 28 | t.string :target | ||
| 29 | t.references :container, :polymorphic => true | ||
| 30 | t.datetime :imported_at | ||
| 31 | t.timestamps | ||
| 32 | end | ||
| 17 | 33 | end | |
| 18 | 34 | ||
| 19 | 35 | def self.down | |
| 20 | 36 | drop_table :admissions | |
| 37 | drop_table :source_importations | ||
| 38 | drop_table :sources | ||
| 21 | 39 | end | |
| 22 | 40 | end |
|   | |||
| 137 | 137 | t.timestamps | |
| 138 | 138 | end | |
| 139 | 139 | ||
| 140 | create_table :source_importations do |t| | ||
| 141 | t.references :source | ||
| 142 | t.references :importation, :polymorphic => true | ||
| 143 | t.string :guid | ||
| 144 | t.timestamps | ||
| 145 | end | ||
| 146 | |||
| 147 | create_table :sources do |t| | ||
| 148 | t.references :uri | ||
| 149 | t.string :content_type | ||
| 150 | t.string :target | ||
| 151 | t.references :container, :polymorphic => true | ||
| 152 | t.datetime :imported_at | ||
| 153 | t.timestamps | ||
| 154 | end | ||
| 155 | |||
| 140 | 156 | create_table :taggings do |t| | |
| 141 | 157 | t.integer :tag_id | |
| 142 | 158 | t.integer :taggable_id | |
| … | … | ||
| 190 | 190 | drop_table :roles | |
| 191 | 191 | drop_table :singular_agents | |
| 192 | 192 | drop_table :sites | |
| 193 | drop_table :sources | ||
| 194 | drop_table :source_importations | ||
| 193 | 195 | drop_table :taggings | |
| 194 | 196 | drop_table :tags | |
| 195 | 197 | drop_table :uris |

