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

17 lines
314 B
Ruby

class ApiKeysMigration < Sequel::Migration
def up
create_table :api_keys do
primary_key :id
String :api_key, :null => false, :unique => true, :index => true
Integer :user_id, :null => false
String :domain, :null => false
end
end
def down
drop_table :api_keys
end
end