Amazing world about data

Developer, ThoughtWorker, Data Architect and Data Specialist

Automation

Automatically adding columns to Rails migrations

Adding default columns in Rails Migrations

2 minutes read

Many projects need addition of identical columns to all the tables created by the project. Audit columns are an example of such a requirement. The requirement is to add columns such as created_by, created_date, modified_by and modified_date to all the tables, these columns store, who created the row, when the row was created, who modified the row last and when was it modified. created_by and created_date are required to be present when the row is inserted and thus are required to be not…

Automated Tablespace deployment

Tablespace deployment

3 minutes read

In development mode you don't want to worry about which table goes into what Tablespace in production as it complicates development environments. The production DBA's want to have their input and control over deciding what table goes into what Tablespace. To allow for this I used a mapping scheme as shown below.

Recent posts

Post

See more

Categories

About