Class: CreateSocial2social
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSocial2social
- Defined in:
- lib/generators/social2social/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
16 17 18 19 |
# File 'lib/generators/social2social/templates/migration.rb', line 16 def self.down remove_foreign_key "remote_subjects", :name => "remote_subjects_on_actor_id" drop_table :remote_subjects end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/social2social/templates/migration.rb', line 3 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. end add_index "remote_subjects", "actor_id" add_foreign_key "remote_subjects", "actors", :name => "remote_subjects_on_actor_id" end |