Sha256: 57f5fdef6101f0051a595452911358d9f7b481184c738348411f7df9243705b9

Contents?: true

Size: 553 Bytes

Versions: 3

Compression:

Stored size: 553 Bytes

Contents

class CreateSocial2social < ActiveRecord::Migration
  
  def self.up
    create_table :remote_subjects, :force => true do |t|
      t.integer :actor_id
      t.string :webfinger_slug
      t.string :hub_url
      t.string :origin_node_url
      t.timestamps
    end
    
    add_index "remote_subjects", "actor_id"
    add_foreign_key "remote_subjects", "actors", :name => "remote_subjects_on_actor_id"
  end
  
  def self.down
    remove_foreign_key "remote_subjects", :name => "remote_subjects_on_actor_id"
    drop_table :remote_subjects
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
social2social-0.0.5 lib/generators/social2social/templates/migration.rb
social2social-0.0.4 lib/generators/social2social/templates/migration.rb
social2social-0.0.3 lib/generators/social2social/templates/migration.rb