cartodb-4.42/db/migrate/20141202092936_create_likes.rb

19 lines
389 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
Sequel.migration do
up do
SequelRails::connection.run 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'
SequelRails::connection.run %Q{
CREATE TABLE likes(
actor uuid NOT NULL,
subject uuid NOT NULL,
created_at timestamp without time zone DEFAULT now(),
PRIMARY KEY(actor, subject)
)
}
end
down do
drop_table :likes
end
end