Class: SpaceCadet::UuidCore
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- SpaceCadet::UuidCore
- Defined in:
- lib/space_cadet_uuid.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
16 17 18 |
# File 'lib/space_cadet_uuid.rb', line 16 def self.down drop_table :uuids end |
.up ⇒ Object
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 |