completed SMS gateway project
This commit is contained in:
14
db/migrate/20251020025135_create_admins.rb
Normal file
14
db/migrate/20251020025135_create_admins.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateAdmins < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :admins do |t|
|
||||
t.string :email, null: false
|
||||
t.string :password_digest, null: false
|
||||
t.string :name, null: false
|
||||
t.datetime :last_login_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :admins, :email, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user