Skip to content
Snippets Groups Projects
Commit 44620399 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

change comment migration and change date_creation attribute for created_at

parent 7064bfbf
No related branches found
No related tags found
No related merge requests found
class OrientDb::Migrations::CreateComment < OrientDb::Migration
def up
create_class 'Comment', 'V' do |c|
c.property 'text', :string
c.property 'date_creation', :datetime
c.property 'last_modified', :datetime
create_class 'Comment', 'Object' do |c|
c.property 'text', :string
end
end
......
......@@ -3,7 +3,7 @@ class OrientDb::Migrations::CreateObject < OrientDb::Migration
def up
create_class 'Object', 'V' do |c|
c.property 'name', :string
c.property 'date_creation', :datetime
c.property 'created_at', :datetime
c.property 'last_modified', :datetime
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment