cartodb-4.42/db/migrate/20131008154516_synchronizations.rb
2024-04-06 05:25:13 +00:00

23 lines
548 B
Ruby

class SynchronizationsMigration < Sequel::Migration
def up
create_table :synchronizations do
String :id, null: false, primary_key: true
String :name, text: true
Integer :interval
String :url, text: true
String :state
Integer :user_id
DateTime :created_at, null: false
DateTime :updated_at, null: false
DateTime :run_at
DateTime :runned_at
Integer :retried_times
end
end
def down
drop_table :synchronizations
end
end