mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
parent
2ff05c4b00
commit
b254a7396a
4 changed files with 8 additions and 69 deletions
|
@ -1,4 +0,0 @@
|
|||
class PricelistVersion < PaperTrail::Version
|
||||
self.table_name = :log_pricelists
|
||||
self.sequence_name = :log_pricelists_id_seq
|
||||
end
|
5
db/migrate/20170423145057_remove_log_pricelists.rb
Normal file
5
db/migrate/20170423145057_remove_log_pricelists.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class RemoveLogPricelists < ActiveRecord::Migration
|
||||
def change
|
||||
drop_table :log_pricelists
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170422162824) do
|
||||
ActiveRecord::Schema.define(version: 20170423145057) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -825,18 +825,6 @@ ActiveRecord::Schema.define(version: 20170422162824) do
|
|||
add_index "log_nameservers", ["item_type", "item_id"], name: "index_log_nameservers_on_item_type_and_item_id", using: :btree
|
||||
add_index "log_nameservers", ["whodunnit"], name: "index_log_nameservers_on_whodunnit", using: :btree
|
||||
|
||||
create_table "log_pricelists", force: :cascade do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.string "session"
|
||||
t.string "uuid"
|
||||
end
|
||||
|
||||
create_table "log_registrars", force: :cascade do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
|
|
|
@ -2147,43 +2147,6 @@ CREATE SEQUENCE log_nameservers_id_seq
|
|||
ALTER SEQUENCE log_nameservers_id_seq OWNED BY log_nameservers.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_pricelists; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE TABLE log_pricelists (
|
||||
id integer NOT NULL,
|
||||
item_type character varying NOT NULL,
|
||||
item_id integer NOT NULL,
|
||||
event character varying NOT NULL,
|
||||
whodunnit character varying,
|
||||
object json,
|
||||
object_changes json,
|
||||
created_at timestamp without time zone,
|
||||
session character varying,
|
||||
uuid character varying
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_pricelists_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE SEQUENCE log_pricelists_id_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_pricelists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER SEQUENCE log_pricelists_id_seq OWNED BY log_pricelists.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_registrars; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
@ -3301,13 +3264,6 @@ ALTER TABLE ONLY log_messages ALTER COLUMN id SET DEFAULT nextval('log_messages_
|
|||
ALTER TABLE ONLY log_nameservers ALTER COLUMN id SET DEFAULT nextval('log_nameservers_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY log_pricelists ALTER COLUMN id SET DEFAULT nextval('log_pricelists_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -3824,14 +3780,6 @@ ALTER TABLE ONLY log_nameservers
|
|||
ADD CONSTRAINT log_nameservers_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_pricelists_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY log_pricelists
|
||||
ADD CONSTRAINT log_pricelists_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_registrars_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
@ -5223,3 +5171,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170422142116');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20170422162824');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20170423145057');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue