mirror of
https://github.com/internetee/registry.git
synced 2025-08-19 07:53:51 +02:00
parent
b254a7396a
commit
980874e762
3 changed files with 19 additions and 12 deletions
5
db/migrate/20170423151046_rename_pricelists_to_prices.rb
Normal file
5
db/migrate/20170423151046_rename_pricelists_to_prices.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class RenamePricelistsToPrices < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
rename_table :pricelists, :prices
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20170423145057) do
|
ActiveRecord::Schema.define(version: 20170423151046) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -961,7 +961,7 @@ ActiveRecord::Schema.define(version: 20170423145057) do
|
||||||
add_index "people", ["email"], name: "index_people_on_email", unique: true, using: :btree
|
add_index "people", ["email"], name: "index_people_on_email", unique: true, using: :btree
|
||||||
add_index "people", ["reset_password_token"], name: "index_people_on_reset_password_token", unique: true, using: :btree
|
add_index "people", ["reset_password_token"], name: "index_people_on_reset_password_token", unique: true, using: :btree
|
||||||
|
|
||||||
create_table "pricelists", force: :cascade do |t|
|
create_table "prices", force: :cascade do |t|
|
||||||
t.string "desc"
|
t.string "desc"
|
||||||
t.string "category"
|
t.string "category"
|
||||||
t.decimal "price_cents", precision: 10, scale: 2, default: 0.0, null: false
|
t.decimal "price_cents", precision: 10, scale: 2, default: 0.0, null: false
|
||||||
|
|
|
@ -2490,10 +2490,10 @@ ALTER SEQUENCE people_id_seq OWNED BY people.id;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: pricelists; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
-- Name: prices; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE pricelists (
|
CREATE TABLE prices (
|
||||||
id integer NOT NULL,
|
id integer NOT NULL,
|
||||||
"desc" character varying,
|
"desc" character varying,
|
||||||
category character varying,
|
category character varying,
|
||||||
|
@ -2511,10 +2511,10 @@ CREATE TABLE pricelists (
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: pricelists_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
-- Name: prices_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE pricelists_id_seq
|
CREATE SEQUENCE prices_id_seq
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -2523,10 +2523,10 @@ CREATE SEQUENCE pricelists_id_seq
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: pricelists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
-- Name: prices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER SEQUENCE pricelists_id_seq OWNED BY pricelists.id;
|
ALTER SEQUENCE prices_id_seq OWNED BY prices.id;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -3331,7 +3331,7 @@ ALTER TABLE ONLY people ALTER COLUMN id SET DEFAULT nextval('people_id_seq'::reg
|
||||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY pricelists ALTER COLUMN id SET DEFAULT nextval('pricelists_id_seq'::regclass);
|
ALTER TABLE ONLY prices ALTER COLUMN id SET DEFAULT nextval('prices_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -3853,11 +3853,11 @@ ALTER TABLE ONLY people
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: pricelists_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
-- Name: prices_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY pricelists
|
ALTER TABLE ONLY prices
|
||||||
ADD CONSTRAINT pricelists_pkey PRIMARY KEY (id);
|
ADD CONSTRAINT prices_pkey PRIMARY KEY (id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -5173,3 +5173,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170422162824');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20170423145057');
|
INSERT INTO schema_migrations (version) VALUES ('20170423145057');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20170423151046');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue