rails_db_admin 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/app/controllers/rails_db_admin/erp_app/desktop/base_controller.rb +26 -25
  2. data/lib/rails_db_admin/version.rb +1 -1
  3. data/public/javascripts/erp_app/desktop/applications/rails_db_admin/tables_tree_menu.js +94 -75
  4. metadata +3 -85
  5. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
  6. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  7. data/spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb +0 -33
  8. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  9. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
  10. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
  11. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
  12. data/spec/dummy/db/data_migrations/20110816005525_rails_db_admin_application.rails_db_admin.rb +0 -32
  13. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
  14. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
  15. data/spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb +0 -19
  16. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  17. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
  18. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
  19. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
  20. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +0 -14
  21. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
  22. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
  23. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
  24. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
  25. data/spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb +0 -67
  26. data/spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb +0 -65
  27. data/spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb +0 -27
  28. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
  29. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
  30. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
  31. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
  32. data/spec/dummy/db/migrate/20121219201515_base_erp_services.erp_base_erp_svcs.rb +0 -461
  33. data/spec/dummy/db/migrate/20121219201516_base_tech_services.erp_tech_svcs.rb +0 -255
  34. data/spec/dummy/db/migrate/20121219201517_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
  35. data/spec/dummy/db/migrate/20121219201518_base_app_framework.erp_app.rb +0 -276
  36. data/spec/dummy/db/migrate/20121219201519_dynamic_forms.erp_forms.rb +0 -95
  37. data/spec/dummy/db/migrate/20121219201520_create_tickets.erp_forms.rb +0 -19
  38. data/spec/dummy/db/migrate/20121219201521_upgrade_dynamic_forms_table.erp_forms.rb +0 -32
  39. data/spec/dummy/db/migrate/20121227215524_add_reports.rails_db_admin.rb +0 -21
  40. data/spec/dummy/db/migrate/20130107181642_create_groups.erp_tech_svcs.rb +0 -19
  41. data/spec/dummy/db/migrate/20130107181643_upgrade_security.erp_tech_svcs.rb +0 -54
  42. data/spec/dummy/db/migrate/20130107181644_upgrade_security2.erp_tech_svcs.rb +0 -270
  43. data/spec/dummy/db/schema.rb +0 -888
  44. data/spec/dummy/db/spec.sqlite3 +0 -0
  45. data/spec/dummy/log/spec.log +0 -38042
@@ -3,19 +3,19 @@ module RailsDbAdmin
3
3
  module Desktop
4
4
  class BaseController < ::ErpApp::Desktop::BaseController
5
5
  before_filter :setup_database_connection
6
-
6
+
7
7
  def databases
8
8
  result = {:databases => []}
9
9
  Rails.configuration.database_configuration.each do |k, v|
10
10
  result[:databases] << {:display => k, :value => k}
11
11
  end
12
12
 
13
- result[:databases].delete_if{|v| v[:value] == Rails.env}
13
+ result[:databases].delete_if { |v| v[:value] == Rails.env }
14
14
  result[:databases].unshift({:value => Rails.env, :display => Rails.env})
15
-
15
+
16
16
  render :json => result
17
17
  end
18
-
18
+
19
19
  def tables
20
20
  result_hash = []
21
21
 
@@ -26,14 +26,15 @@ module RailsDbAdmin
26
26
  tables << {:name => table, :display => table} unless table.blank?
27
27
  end
28
28
 
29
- tables.sort! { |a,b| a[:name].downcase <=> b[:name].downcase }
29
+ tables = tables.select { |table| table[:name] =~ Regexp.new("^#{params[:name]}.", Regexp::IGNORECASE)}
30
+ tables.sort! { |a, b| a[:name].downcase <=> b[:name].downcase }
30
31
 
31
32
  tables.each do |table|
32
33
  result_hash << {:isTable => true,
33
- :text => table[:display],
34
- :id => table[:display],
35
- :iconCls => 'icon-data',
36
- :leaf => false}
34
+ :text => table[:display],
35
+ :id => table[:display],
36
+ :iconCls => 'icon-data',
37
+ :leaf => false}
37
38
  end
38
39
  else
39
40
  columns = @database_connection_class.connection.columns(params[:node])
@@ -53,18 +54,18 @@ module RailsDbAdmin
53
54
 
54
55
  if @table_support.table_contains_column(table, :id)
55
56
  result[:columns] =
56
- RailsDbAdmin::Extjs::JsonColumnBuilder.build_grid_columns(columns)
57
+ RailsDbAdmin::Extjs::JsonColumnBuilder.build_grid_columns(columns)
57
58
  result[:model] = table
58
59
  result[:fields] =
59
- RailsDbAdmin::Extjs::JsonColumnBuilder.build_store_fields(columns)
60
+ RailsDbAdmin::Extjs::JsonColumnBuilder.build_store_fields(columns)
60
61
  result[:validations] = []
61
62
  result[:id_property] = "id"
62
63
  else
63
64
  result[:columns] =
64
- RailsDbAdmin::Extjs::JsonColumnBuilder.build_grid_columns(columns, true)
65
+ RailsDbAdmin::Extjs::JsonColumnBuilder.build_grid_columns(columns, true)
65
66
  result[:model] = table
66
67
  result[:fields] =
67
- RailsDbAdmin::Extjs::JsonColumnBuilder.build_store_fields(columns, true)
68
+ RailsDbAdmin::Extjs::JsonColumnBuilder.build_store_fields(columns, true)
68
69
  result[:validations] = []
69
70
  result[:id_property] = "fake_id"
70
71
  end
@@ -74,14 +75,14 @@ module RailsDbAdmin
74
75
 
75
76
  def table_data
76
77
  render :json => if request.get?
77
- get_table_data
78
- elsif request.post?
79
- create_table_row
80
- elsif request.put?
81
- update_table_data
82
- elsif request.delete?
83
- delete_table_row
84
- end
78
+ get_table_data
79
+ elsif request.post?
80
+ create_table_row
81
+ elsif request.put?
82
+ update_table_data
83
+ elsif request.delete?
84
+ delete_table_row
85
+ end
85
86
  end
86
87
 
87
88
  private
@@ -113,7 +114,7 @@ module RailsDbAdmin
113
114
  record = @json_data_builder.get_row_data(table, id)
114
115
  else
115
116
  params[:data].delete('fake_id')
116
- fake_id = @table_support.insert_row(table, params[:data],true)
117
+ fake_id = @table_support.insert_row(table, params[:data], true)
117
118
  record = @json_data_builder.get_row_data_no_id(table, params[:data])
118
119
  record[:fake_id] = fake_id
119
120
  end
@@ -149,7 +150,7 @@ module RailsDbAdmin
149
150
  if @table_support.primary_key?(table)
150
151
  pk = @table_support.primary_key(table)
151
152
  pk[1] = id
152
- @table_support.delete_row(table.pluralize.underscore,pk)
153
+ @table_support.delete_row(table.pluralize.underscore, pk)
153
154
  else
154
155
  exception = "Unable to determine primary key on this table. "\
155
156
  "Delete not performed"
@@ -169,14 +170,14 @@ module RailsDbAdmin
169
170
  @table_support = RailsDbAdmin::TableSupport.new(@database_connection_class)
170
171
  @json_data_builder = RailsDbAdmin::Extjs::JsonDataBuilder.new(@database_connection_class)
171
172
  end
172
-
173
+
173
174
  def database_connection_name
174
175
  database_name = Rails.env
175
176
 
176
177
  unless params[:database].blank?
177
178
  database_name = params[:database]
178
179
  end
179
-
180
+
180
181
  database_name
181
182
  end
182
183
 
@@ -2,7 +2,7 @@ module RailsDbAdmin
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
@@ -1,83 +1,102 @@
1
- Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.TablesMenuTreePanel",{
2
- extend:"Ext.tree.TreePanel",
3
- alias:'widget.railsdbadmin_tablestreemenu',
4
- constructor : function(config) {
5
- var self = this;
1
+ Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.TablesMenuTreePanel", {
2
+ extend: "Ext.tree.TreePanel",
3
+ alias: 'widget.railsdbadmin_tablestreemenu',
4
+ constructor: function (config) {
5
+ var self = this;
6
6
 
7
- config = Ext.apply({
8
- title:'Tables',
9
- autoScroll:true,
10
- store:Ext.create('Ext.data.TreeStore', {
11
- proxy: {
12
- type: 'ajax',
13
- url: '/rails_db_admin/erp_app/desktop/base/tables'
14
- },
15
- root: {
16
- text: 'Tables',
17
- expanded:false,
18
- draggable:false,
19
- iconCls:'icon-content'
20
- },
21
- fields:[
22
- {
23
- name:'leaf'
24
- },
7
+ config = Ext.apply({
8
+ title: 'Tables',
9
+ autoScroll: true,
10
+ dockedItems: [
11
+ {
12
+ xtype: 'toolbar',
13
+ docked: 'top',
14
+ items: [
15
+ {
16
+ xtype: 'textfield',
17
+ flex: 1,
18
+ emptyText: 'Table Name',
19
+ listeners:{
20
+ change:function(comp, newValue, oldValue){
21
+ var store = comp.up('treepanel').getStore();
22
+ store.load({params:{name:newValue}});
23
+ }
24
+ }
25
+ }
26
+ ]
27
+ }
28
+ ],
29
+ store: Ext.create('Ext.data.TreeStore', {
30
+ proxy: {
31
+ type: 'ajax',
32
+ url: '/rails_db_admin/erp_app/desktop/base/tables'
33
+ },
34
+ root: {
35
+ text: 'Tables',
36
+ expanded: false,
37
+ draggable: false,
38
+ iconCls: 'icon-content'
39
+ },
40
+ fields: [
41
+ {
42
+ name: 'leaf'
43
+ },
25
44
 
26
- {
27
- name:'iconCls'
28
- },
45
+ {
46
+ name: 'iconCls'
47
+ },
29
48
 
30
- {
31
- name:'text'
32
- },
49
+ {
50
+ name: 'text'
51
+ },
33
52
 
34
- {
35
- name:'id'
36
- },
53
+ {
54
+ name: 'id'
55
+ },
37
56
 
38
- {
39
- name:'isTable'
40
- }
41
- ]
42
- }),
43
- animate:false,
44
- listeners:{
45
- 'itemcontextmenu':function(view, record, item, index, e){
46
- e.stopEvent();
47
- if(!record.data['isTable']){
48
- return false;
49
- }
50
- else{
51
- var contextMenu = new Ext.menu.Menu({
52
- items:[
53
- {
54
- text:"Select Top 50",
55
- iconCls:'icon-settings',
56
- listeners:{
57
- scope:record,
58
- 'click':function(){
59
- self.initialConfig.module.selectTopFifty(this.data.id);
60
- }
61
- }
62
- },
63
- {
64
- text:"Edit Table Data",
65
- iconCls:'icon-edit',
66
- listeners:{
67
- scope:record,
68
- 'click':function(){
69
- self.initialConfig.module.getTableData(this.data.id);
70
- }
57
+ {
58
+ name: 'isTable'
59
+ }
60
+ ]
61
+ }),
62
+ animate: false,
63
+ listeners: {
64
+ 'itemcontextmenu': function (view, record, item, index, e) {
65
+ e.stopEvent();
66
+ if (!record.data['isTable']) {
67
+ return false;
68
+ }
69
+ else {
70
+ var contextMenu = new Ext.menu.Menu({
71
+ items: [
72
+ {
73
+ text: "Select Top 50",
74
+ iconCls: 'icon-settings',
75
+ listeners: {
76
+ scope: record,
77
+ 'click': function () {
78
+ self.initialConfig.module.selectTopFifty(this.data.id);
79
+ }
80
+ }
81
+ },
82
+ {
83
+ text: "Edit Table Data",
84
+ iconCls: 'icon-edit',
85
+ listeners: {
86
+ scope: record,
87
+ 'click': function () {
88
+ self.initialConfig.module.getTableData(this.data.id);
89
+ }
90
+ }
91
+ }
92
+ ]
93
+ });
94
+ contextMenu.showAt(e.xy);
95
+ }
71
96
  }
72
- }
73
- ]
74
- });
75
- contextMenu.showAt(e.xy);
76
- }
77
- }
78
- }
79
- }, config);
97
+ }
98
+ }, config);
80
99
 
81
- this.callParent([config]);
82
- }
100
+ this.callParent([config]);
101
+ }
83
102
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_db_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-25 00:00:00.000000000 Z
12
+ date: 2013-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_forms
@@ -118,47 +118,6 @@ files:
118
118
  - spec/dummy/config/locales/en.yml
119
119
  - spec/dummy/config/routes.rb
120
120
  - spec/dummy/config.ru
121
- - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
122
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
123
- - spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb
124
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
125
- - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
126
- - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
127
- - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
128
- - spec/dummy/db/data_migrations/20110816005525_rails_db_admin_application.rails_db_admin.rb
129
- - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
130
- - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
131
- - spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb
132
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
133
- - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
134
- - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
135
- - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
136
- - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
137
- - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
138
- - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
139
- - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
140
- - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
141
- - spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb
142
- - spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb
143
- - spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb
144
- - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
145
- - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
146
- - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
147
- - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
148
- - spec/dummy/db/migrate/20121219201515_base_erp_services.erp_base_erp_svcs.rb
149
- - spec/dummy/db/migrate/20121219201516_base_tech_services.erp_tech_svcs.rb
150
- - spec/dummy/db/migrate/20121219201517_create_has_attribute_tables.erp_tech_svcs.rb
151
- - spec/dummy/db/migrate/20121219201518_base_app_framework.erp_app.rb
152
- - spec/dummy/db/migrate/20121219201519_dynamic_forms.erp_forms.rb
153
- - spec/dummy/db/migrate/20121219201520_create_tickets.erp_forms.rb
154
- - spec/dummy/db/migrate/20121219201521_upgrade_dynamic_forms_table.erp_forms.rb
155
- - spec/dummy/db/migrate/20121227215524_add_reports.rails_db_admin.rb
156
- - spec/dummy/db/migrate/20130107181642_create_groups.erp_tech_svcs.rb
157
- - spec/dummy/db/migrate/20130107181643_upgrade_security.erp_tech_svcs.rb
158
- - spec/dummy/db/migrate/20130107181644_upgrade_security2.erp_tech_svcs.rb
159
- - spec/dummy/db/schema.rb
160
- - spec/dummy/db/spec.sqlite3
161
- - spec/dummy/log/spec.log
162
121
  - spec/dummy/public/404.html
163
122
  - spec/dummy/public/422.html
164
123
  - spec/dummy/public/500.html
@@ -190,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
149
  version: '0'
191
150
  requirements: []
192
151
  rubyforge_project:
193
- rubygems_version: 1.8.24
152
+ rubygems_version: 1.8.25
194
153
  signing_key:
195
154
  specification_version: 3
196
155
  summary: RailsDB Admin is similar in functionality to PHPMyAdmin and other database
@@ -218,47 +177,6 @@ test_files:
218
177
  - spec/dummy/config/locales/en.yml
219
178
  - spec/dummy/config/routes.rb
220
179
  - spec/dummy/config.ru
221
- - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
222
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
223
- - spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb
224
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
225
- - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
226
- - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
227
- - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
228
- - spec/dummy/db/data_migrations/20110816005525_rails_db_admin_application.rails_db_admin.rb
229
- - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
230
- - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
231
- - spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb
232
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
233
- - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
234
- - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
235
- - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
236
- - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
237
- - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
238
- - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
239
- - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
240
- - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
241
- - spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb
242
- - spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb
243
- - spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb
244
- - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
245
- - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
246
- - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
247
- - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
248
- - spec/dummy/db/migrate/20121219201515_base_erp_services.erp_base_erp_svcs.rb
249
- - spec/dummy/db/migrate/20121219201516_base_tech_services.erp_tech_svcs.rb
250
- - spec/dummy/db/migrate/20121219201517_create_has_attribute_tables.erp_tech_svcs.rb
251
- - spec/dummy/db/migrate/20121219201518_base_app_framework.erp_app.rb
252
- - spec/dummy/db/migrate/20121219201519_dynamic_forms.erp_forms.rb
253
- - spec/dummy/db/migrate/20121219201520_create_tickets.erp_forms.rb
254
- - spec/dummy/db/migrate/20121219201521_upgrade_dynamic_forms_table.erp_forms.rb
255
- - spec/dummy/db/migrate/20121227215524_add_reports.rails_db_admin.rb
256
- - spec/dummy/db/migrate/20130107181642_create_groups.erp_tech_svcs.rb
257
- - spec/dummy/db/migrate/20130107181643_upgrade_security.erp_tech_svcs.rb
258
- - spec/dummy/db/migrate/20130107181644_upgrade_security2.erp_tech_svcs.rb
259
- - spec/dummy/db/schema.rb
260
- - spec/dummy/db/spec.sqlite3
261
- - spec/dummy/log/spec.log
262
180
  - spec/dummy/public/404.html
263
181
  - spec/dummy/public/422.html
264
182
  - spec/dummy/public/500.html
@@ -1,15 +0,0 @@
1
- # This migration comes from erp_tech_svcs (originally 20110109173616)
2
- class CreateCapabilityScopeTypes
3
-
4
- def self.up
5
- CapabilityType.create(:internal_identifier => 'download', :description => 'Download') if CapabilityType.where("internal_identifier = 'download'").first.nil?
6
-
7
- ScopeType.create(:description => 'Instance', :internal_identifier => 'instance') if ScopeType.where("internal_identifier = 'instance'").first.nil?
8
- ScopeType.create(:description => 'Class', :internal_identifier => 'class') if ScopeType.where("internal_identifier = 'class'").first.nil?
9
- ScopeType.create(:description => 'Query', :internal_identifier => 'query') if ScopeType.where("internal_identifier = 'query'").first.nil?
10
- end
11
-
12
- def self.down
13
- end
14
-
15
- end