Class: SpaceCadet::UuidCore

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/space_cadet_uuid.rb

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
# File 'lib/space_cadet_uuid.rb', line 16

def self.down
  drop_table :uuids
end

.upObject



7
8
9
10
11
12
13
14
# File 'lib/space_cadet_uuid.rb', line 7

def self.up
  create_table :uuids do |t|
    t.string :source_name
    t.string :uuid
  end

  add_index :uuids, :uuid, unique: true
end