2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/skynet-core/db/migrate/001_create_actives_and_logs.rb', line 2
def self.up
create_table :memories do |t|
t.column :brand_id, :integer
t.column :tracked_network_id, :integer
t.column :network_type, :integer
t.column :url, :string
t.column :source, :string
t.column :post, :text
t.column :author, :string
t.column :description, :text
t.column :slot_1, :integer
t.column :slot_2, :integer
t.column :slot_3, :integer
t.column :integrated, :boolean, :default => false
t.column :created_at, :datetime
t.column :integrated_at, :datetime
end
add_index :memories, [:url, :tracked_network_id], :unique => true
create_table :logs do |table|
table.column :message, :text
table.column :pid, :string
table.column :tracked_network_id, :integer
table.column :created_at, :datetime
end
end
|