Sha256: e69bf3ab757e0e621e611d9b8a767c0c21dc59f2e7d3b8eb9730b50bd2a54f97

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

class SorceryCore < <%= migration_class_name %>
  def change
    create_table :<%= tableized_model_class %> do |t|
      t.string :email,            null: false
      t.string :crypted_password
      t.string :salt

      t.timestamps                null: false
    end

    add_index :<%= tableized_model_class %>, :email, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sorcery-0.16.1 lib/generators/sorcery/templates/migration/core.rb
sorcery-0.16.0 lib/generators/sorcery/templates/migration/core.rb