add currency entity
This commit is contained in:
10
db/migrate/20210811014107_create_currencies.rb
Normal file
10
db/migrate/20210811014107_create_currencies.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateCurrencies < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table(:currencies) do |t|
|
||||
t.string(:name, null: false)
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
8
db/schema.rb
generated
8
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_08_08_153626) do
|
||||
ActiveRecord::Schema.define(version: 2021_08_11_014107) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -55,6 +55,12 @@ ActiveRecord::Schema.define(version: 2021_08_08_153626) do
|
||||
t.index ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
|
||||
end
|
||||
|
||||
create_table "currencies", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
end
|
||||
|
||||
create_table "user_documents", force: :cascade do |t|
|
||||
t.string "status", null: false
|
||||
t.bigint "user_id", null: false
|
||||
|
||||
Reference in New Issue
Block a user