Skip to content

Commit

Permalink
feat: add is_repeated_symbol to omiga_inscription_infos
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Mar 13, 2024
1 parent bc79d09 commit 4d89c65
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
33 changes: 17 additions & 16 deletions app/models/omiga_inscription_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ class OmigaInscriptionInfo < ApplicationRecord
#
# Table name: omiga_inscription_infos
#
# id :bigint not null, primary key
# code_hash :binary
# hash_type :string
# args :string
# decimal :decimal(, )
# name :string
# symbol :string
# udt_hash :string
# expected_supply :decimal(, )
# mint_limit :decimal(, )
# mint_status :integer
# udt_id :bigint
# created_at :datetime not null
# updated_at :datetime not null
# type_hash :binary
# pre_udt_hash :binary
# id :bigint not null, primary key
# code_hash :binary
# hash_type :string
# args :string
# decimal :decimal(, )
# name :string
# symbol :string
# udt_hash :string
# expected_supply :decimal(, )
# mint_limit :decimal(, )
# mint_status :integer
# udt_id :bigint
# created_at :datetime not null
# updated_at :datetime not null
# type_hash :binary
# pre_udt_hash :binary
# is_repeated_symbol :boolean default(FALSE)
#
# Indexes
#
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIsRepeatedSymbolToOmigaInscriptionInfo < ActiveRecord::Migration[7.0]
def change
add_column :omiga_inscription_infos, :is_repeated_symbol, :boolean, default: false
end
end
6 changes: 4 additions & 2 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,8 @@ CREATE TABLE public.omiga_inscription_infos (
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
type_hash bytea,
pre_udt_hash bytea
pre_udt_hash bytea,
is_repeated_symbol boolean DEFAULT false
);


Expand Down Expand Up @@ -5185,6 +5186,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20240301025505'),
('20240305100337'),
('20240311143030'),
('20240312050057');
('20240312050057'),
('20240313075641');


0 comments on commit 4d89c65

Please sign in to comment.