Sha256: 96d67a6cf7222ea13da5de40c52d750d3b068164f5ae14b464bd3c92ea45430a

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

class SorceryExternal < <%= migration_class_name %>
  def change
    create_table :authentications do |t|
      t.integer :<%= model_class_name.tableize.singularize %>_id, :null => false
      t.string :provider, :uid, :null => false

      t.timestamps              :null => false
    end

    add_index :authentications, [:provider, :uid]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sorcery-0.13.0 lib/generators/sorcery/templates/migration/external.rb
sorcery-0.12.0 lib/generators/sorcery/templates/migration/external.rb
sorcery-0.11.0 lib/generators/sorcery/templates/migration/external.rb
sorcery-0.10.3 lib/generators/sorcery/templates/migration/external.rb
sorcery-0.10.2 lib/generators/sorcery/templates/migration/external.rb
sorcery-0.10.1 lib/generators/sorcery/templates/migration/external.rb
sorcery-0.10.0 lib/generators/sorcery/templates/migration/external.rb