Sha256: 64081918ed924bb4ba36b51ec99a916838d2d56832b5f9df1d3635b7a67f4355

Contents?: true

Size: 326 Bytes

Versions: 13

Compression:

Stored size: 326 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :admin_users do |t|
      t.string :email, null: false
      t.string :password_digest, null: false

      t.timestamps
    end

    add_index :admin_users, :email, unique: true
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
administration-zero-1.0.4 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-1.0.3 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-1.0.2 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-1.0.1 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-1.0.0 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.18 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.17 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.16 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.15 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.14 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.13 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.12 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.11 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt