"metrics",
"notifications",
"permission_templates",
- "permission_templates_users",
- "permission_templates_groups",
+ "perm_templates_users",
+ "perm_templates_groups",
"projects",
"project_links",
"project_measures",
"UPDATED_AT" TIMESTAMP
);
-CREATE TABLE "PERMISSION_TEMPLATES_USERS" (
+CREATE TABLE "PERM_TEMPLATES_USERS" (
"ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
"USER_LOGIN" VARCHAR(40) NOT NULL,
"TEMPLATE_NAME" VARCHAR(100) NOT NULL,
"UPDATED_AT" TIMESTAMP
);
-CREATE TABLE "PERMISSION_TEMPLATES_GROUPS" (
+CREATE TABLE "PERM_TEMPLATES_GROUPS" (
"ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
"GROUP_ID" INTEGER,
"TEMPLATE_NAME" VARCHAR(100) NOT NULL,
class CreatePermissionTemplatesUsers < ActiveRecord::Migration
def self.up
- create_table :permission_templates_users do |t|
+ create_table :perm_templates_users do |t|
t.column :user_login, :string, :null => false, :limit => 40
t.column :template_name, :string, :null => false, :limit => 100
t.column :created_at, :datetime, :null => true
class CreatePermissionTemplatesGroups < ActiveRecord::Migration
def self.up
- create_table :permission_templates_groups do |t|
+ create_table :perm_templates_groups do |t|
t.column :group_id, :integer, :null => true
t.column :template_name, :string, :null => false, :limit => 100
t.column :created_at, :datetime, :null => true