Commit b8f5baf8dd19a40df4b6a94e9eb3b0eeb4bf4597

Database schemas for 0.3.0
  
1414 t.timestamps
1515 t.datetime :processed_at
1616 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
1733 end
1834
1935 def self.down
2036 drop_table :admissions
37 drop_table :source_importations
38 drop_table :sources
2139 end
2240end
  
137137 t.timestamps
138138 end
139139
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
140156 create_table :taggings do |t|
141157 t.integer :tag_id
142158 t.integer :taggable_id
190190 drop_table :roles
191191 drop_table :singular_agents
192192 drop_table :sites
193 drop_table :sources
194 drop_table :source_importations
193195 drop_table :taggings
194196 drop_table :tags
195197 drop_table :uris