Sha256: 6efe038f0b84288d9a562b85bcea91bc37e72f80867c2db7ef571eb86024421c

Contents?: true

Size: 300 Bytes

Versions: 10

Compression:

Stored size: 300 Bytes

Contents

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

      t.timestamps
    end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
administration-zero-0.0.10 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.9 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.8 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.7 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.6 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.5 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.4 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.3 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.2 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt
administration-zero-0.0.1 lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt