netzke-basepack 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +27 -2
- data/TODO.rdoc +1 -5
- data/app/models/netzke_persistent_array_auto_model.rb +0 -1
- data/features/components_in_view.feature +11 -0
- data/features/form_panel.feature +49 -0
- data/features/grid_panel.feature +32 -1
- data/features/i18n.feature +18 -0
- data/features/nested_attributes.feature +23 -0
- data/features/search_in_grid.feature +9 -9
- data/features/simple_app.feature +10 -0
- data/features/step_definitions/grid_panel_steps.rb +23 -0
- data/features/support/paths.rb +6 -0
- data/features/support/pickle.rb +0 -1
- data/features/virtual_attributes.feature +20 -0
- data/javascripts/basepack.js +166 -243
- data/lib/netzke-basepack.rb +3 -3
- data/lib/netzke/active_record.rb +6 -7
- data/lib/netzke/active_record/attributes.rb +214 -143
- data/lib/netzke/active_record/combobox_options.rb +12 -10
- data/lib/netzke/basepack.rb +6 -3
- data/lib/netzke/basepack/accordion_panel.rb +4 -2
- data/lib/netzke/basepack/auth_app.rb +152 -0
- data/lib/netzke/basepack/basic_app.rb +2 -262
- data/lib/netzke/basepack/form_panel.rb +35 -27
- data/lib/netzke/basepack/form_panel/fields.rb +35 -17
- data/lib/netzke/basepack/form_panel/javascripts/comma_list_cbg.js +59 -0
- data/lib/netzke/basepack/form_panel/javascripts/display_mode.js +62 -0
- data/lib/netzke/basepack/form_panel/javascripts/main.js +138 -0
- data/lib/netzke/basepack/form_panel/javascripts/n_radio_group.js +25 -0
- data/lib/netzke/basepack/form_panel/services.rb +12 -9
- data/lib/netzke/basepack/grid_panel.rb +87 -53
- data/lib/netzke/basepack/grid_panel/columns.rb +60 -15
- data/lib/netzke/basepack/grid_panel/javascripts/advanced_search.js +2 -64
- data/lib/netzke/basepack/grid_panel/javascripts/edit_in_form.js +2 -2
- data/lib/netzke/basepack/grid_panel/javascripts/{pre.js → main.js} +35 -17
- data/lib/netzke/basepack/grid_panel/javascripts/misc.js +4 -0
- data/lib/netzke/basepack/grid_panel/services.rb +17 -14
- data/lib/netzke/basepack/paging_form_panel.rb +92 -0
- data/lib/netzke/basepack/simple_app.rb +71 -0
- data/lib/netzke/basepack/simple_app/javascripts/main.js +53 -0
- data/lib/netzke/basepack/{basic_app → simple_app/javascripts}/statusbar_ext.js +0 -0
- data/lib/netzke/basepack/tab_panel.rb +2 -12
- data/lib/netzke/basepack/tab_panel/javascripts/main.js +11 -0
- data/lib/netzke/basepack/version.rb +2 -2
- data/lib/netzke/basepack/window.rb +6 -7
- data/lib/netzke/basepack/wrap_lazy_loaded.rb +3 -1
- data/lib/netzke/data_accessor.rb +25 -14
- data/lib/netzke/ext.rb +1 -1
- data/locales/en.yml +22 -0
- data/netzke-basepack.gemspec +66 -12
- data/spec/active_record/attributes_spec.rb +31 -2
- data/spec/factories.rb +16 -1
- data/test/rails_app/Gemfile +2 -2
- data/test/rails_app/Gemfile.lock +76 -77
- data/test/rails_app/app/components/author_grid.rb +7 -0
- data/test/rails_app/app/components/book_form.rb +24 -0
- data/test/rails_app/app/components/book_grid.rb +6 -1
- data/test/rails_app/app/components/book_grid_with_default_values.rb +11 -0
- data/test/rails_app/app/components/book_grid_with_nested_attributes.rb +13 -0
- data/test/rails_app/app/components/book_grid_with_virtual_attributes.rb +22 -0
- data/test/rails_app/app/components/book_paging_form_panel.rb +20 -0
- data/test/rails_app/app/components/book_presentation.rb +18 -0
- data/test/rails_app/app/components/books_bound_to_author.rb +10 -0
- data/test/rails_app/app/components/form_without_model.rb +19 -0
- data/test/rails_app/app/components/lockable_book_form.rb +17 -0
- data/test/rails_app/app/components/lockable_user_form.rb +7 -0
- data/test/rails_app/app/components/simple_window.rb +10 -0
- data/test/rails_app/app/components/some_accordion_panel.rb +22 -0
- data/test/rails_app/app/components/{simple_basic_app.rb → some_auth_app.rb} +3 -3
- data/test/rails_app/app/components/some_border_layout.rb +10 -7
- data/test/rails_app/app/components/some_simple_app.rb +34 -0
- data/test/rails_app/app/components/some_tab_panel.rb +16 -11
- data/test/rails_app/app/components/user_form.rb +11 -4
- data/test/rails_app/app/components/user_grid.rb +7 -1
- data/test/rails_app/app/components/window_component_loader.rb +1 -0
- data/test/rails_app/app/controllers/application_controller.rb +6 -0
- data/test/rails_app/app/controllers/components_controller.rb +3 -3
- data/test/rails_app/app/controllers/welcome_controller.rb +2 -2
- data/test/rails_app/app/helpers/embedded_components_helper.rb +2 -0
- data/test/rails_app/app/models/address.rb +3 -0
- data/test/rails_app/app/models/author.rb +2 -0
- data/test/rails_app/app/models/book.rb +1 -0
- data/test/rails_app/app/models/user.rb +1 -2
- data/test/rails_app/app/views/components/simple_panel.html.erb +1 -0
- data/test/rails_app/app/views/layouts/nested.html.erb +5 -0
- data/test/rails_app/config/application.rb +1 -1
- data/test/rails_app/config/initializers/netzke.rb +0 -4
- data/test/rails_app/config/locales/es.yml +16 -0
- data/test/rails_app/config/routes.rb +4 -1
- data/test/rails_app/db/development_structure.sql +33 -4
- data/test/rails_app/db/migrate/20101026190021_create_books.rb +2 -0
- data/test/rails_app/db/migrate/20110101143818_create_addresses.rb +17 -0
- data/test/rails_app/db/schema.rb +33 -1
- data/test/rails_app/spec/controllers/embedded_components_controller_spec.rb +12 -0
- data/test/rails_app/spec/helpers/embedded_components_helper_spec.rb +15 -0
- data/test/rails_app/spec/models/address_spec.rb +5 -0
- data/test/rails_app/spec/views/embedded_components/index.html.erb_spec.rb +5 -0
- metadata +67 -13
- data/features/basic_app.feature +0 -12
- data/lib/netzke/active_record/association_attributes.rb +0 -102
- data/lib/netzke/basepack/form_panel/javascripts/pre.js +0 -76
- data/lib/netzke/basepack/form_panel/javascripts/xcheckbox.js +0 -82
- data/lib/netzke/basepack/grid_panel/javascript.rb +0 -69
- data/locale/en.yml +0 -16
@@ -0,0 +1,22 @@
|
|
1
|
+
class SomeAccordionPanel < Netzke::Basepack::AccordionPanel
|
2
|
+
def configuration
|
3
|
+
super.merge(
|
4
|
+
:layout_config => {
|
5
|
+
:animate => true,
|
6
|
+
},
|
7
|
+
:items => [:panel_one.component, :panel_two.component]
|
8
|
+
)
|
9
|
+
end
|
10
|
+
|
11
|
+
component :panel_one, {
|
12
|
+
:class_name => "Basepack::Panel",
|
13
|
+
:title => "Panel One"
|
14
|
+
}
|
15
|
+
|
16
|
+
component :panel_two, {
|
17
|
+
:class_name => "Basepack::Panel",
|
18
|
+
:title => "Panel Two",
|
19
|
+
:html => "Some html",
|
20
|
+
:lazy_loading => true
|
21
|
+
}
|
22
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class
|
1
|
+
class SomeAuthApp < Netzke::Basepack::AuthApp
|
2
2
|
def menu
|
3
3
|
[:simple_accordion.action, :user_grid.action, :simple_tab_panel.action] + super
|
4
4
|
end
|
@@ -12,7 +12,7 @@ class SimpleBasicApp < Netzke::Basepack::BasicApp
|
|
12
12
|
component :simple_tab_panel, :active_tab => 0
|
13
13
|
|
14
14
|
# Wrapping up original layout into a border-layout with the north panel being a fancy header
|
15
|
-
def
|
15
|
+
def configuration
|
16
16
|
orig = super
|
17
17
|
orig.merge(:items => [{
|
18
18
|
:region => :north,
|
@@ -25,7 +25,7 @@ class SimpleBasicApp < Netzke::Basepack::BasicApp
|
|
25
25
|
:bodyStyle => {"background" => "#FFF url(\"/images/header-deco.gif\") top left repeat-x"}
|
26
26
|
},{
|
27
27
|
:region => :center,
|
28
|
-
:layout =>
|
28
|
+
:layout => :border,
|
29
29
|
:items => orig[:items]
|
30
30
|
}])
|
31
31
|
end
|
@@ -1,14 +1,17 @@
|
|
1
1
|
class SomeBorderLayout < Netzke::Basepack::BorderLayoutPanel
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
def configuration
|
3
|
+
super.merge(
|
4
|
+
:items => [
|
5
|
+
{:title => "Who", :class_name => "Basepack::GridPanel", :region => :center, :model => "User", :name => :user_grid},
|
6
|
+
{:title => "Item Two", :class_name => "Basepack::GridPanel", :region => :west, :width => 500, :split => true, :collapsible => true, :model => "Role", :name => :role_grid}
|
7
|
+
]
|
8
|
+
)
|
9
|
+
end
|
10
|
+
|
11
|
+
js_property :bbar, [:update_center_region.action, :update_west_region.action]
|
7
12
|
|
8
13
|
action :update_center_region
|
9
14
|
action :update_west_region
|
10
|
-
|
11
|
-
# config :default, :persistence => true
|
12
15
|
|
13
16
|
js_method :on_update_west_region, <<-JS
|
14
17
|
function(){
|
@@ -0,0 +1,34 @@
|
|
1
|
+
class SomeSimpleApp < Netzke::Basepack::SimpleApp
|
2
|
+
def menu
|
3
|
+
[:simple_accordion.action, :user_grid.action, :simple_tab_panel.action] + super
|
4
|
+
end
|
5
|
+
|
6
|
+
action :simple_accordion, :icon => :application_tile_vertical, :handler => :load_component_by_action
|
7
|
+
action :user_grid, :icon => :table, :handler => :load_component_by_action
|
8
|
+
action :simple_tab_panel, :icon => :table_multiple, :handler => :load_component_by_action
|
9
|
+
|
10
|
+
component :user_grid
|
11
|
+
component :simple_accordion
|
12
|
+
component :simple_tab_panel, :active_tab => 0
|
13
|
+
|
14
|
+
js_property :border, false
|
15
|
+
|
16
|
+
# Wrapping up original layout into a border-layout with the north panel being a fancy header
|
17
|
+
def configuration
|
18
|
+
orig = super
|
19
|
+
orig.merge(:items => [{
|
20
|
+
:region => :north,
|
21
|
+
:height => 35,
|
22
|
+
:html => %Q{
|
23
|
+
<div style="margin:10px; color:#333; text-align:center; font-family: Helvetica;">
|
24
|
+
Simple <span style="color:#B32D15">Netzke</span> app
|
25
|
+
</div>
|
26
|
+
},
|
27
|
+
:bodyStyle => {"background" => "#FFF url(\"/images/header-deco.gif\") top left repeat-x"}
|
28
|
+
},{
|
29
|
+
:region => :center,
|
30
|
+
:layout => 'border',
|
31
|
+
:items => orig[:items]
|
32
|
+
}])
|
33
|
+
end
|
34
|
+
end
|
@@ -1,15 +1,20 @@
|
|
1
1
|
class SomeTabPanel < Netzke::Basepack::TabPanel
|
2
|
-
def
|
3
|
-
|
2
|
+
def configuration
|
3
|
+
super.merge(
|
4
4
|
:active_tab => 0,
|
5
|
-
:items => [
|
6
|
-
|
7
|
-
:class_name => "UserForm",
|
8
|
-
:record_id => User.first.id
|
9
|
-
},{
|
10
|
-
:title => "User grid",
|
11
|
-
:class_name => "UserGrid"
|
12
|
-
}]
|
13
|
-
}.deep_merge super
|
5
|
+
:items => [:tab_one.component,:tab_two.component]
|
6
|
+
)
|
14
7
|
end
|
8
|
+
|
9
|
+
component :tab_one, {
|
10
|
+
:title => "First Tab",
|
11
|
+
:class_name => "Basepack::Panel"
|
12
|
+
}
|
13
|
+
|
14
|
+
component :tab_two, {
|
15
|
+
:title => "Second Tab",
|
16
|
+
:class_name => "Basepack::Panel",
|
17
|
+
:lazy_loading => true # Dynamically loaded when the tab gets open
|
18
|
+
}
|
19
|
+
|
15
20
|
end
|
@@ -1,8 +1,9 @@
|
|
1
1
|
class UserForm < Netzke::Basepack::FormPanel
|
2
|
-
js_property :title,
|
2
|
+
js_property :title, User.model_name.human
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
def configuration
|
5
|
+
sup = super
|
6
|
+
sup.merge({
|
6
7
|
:model => 'User',
|
7
8
|
:record_id => User.first.id,
|
8
9
|
:items => [
|
@@ -16,6 +17,12 @@ class UserForm < Netzke::Basepack::FormPanel
|
|
16
17
|
]},
|
17
18
|
:role__name
|
18
19
|
]
|
19
|
-
}
|
20
|
+
})
|
20
21
|
end
|
22
|
+
|
23
|
+
# Uncomment for visual mask testing
|
24
|
+
# def netzke_submit_endpoint(params)
|
25
|
+
# sleep 2
|
26
|
+
# super
|
27
|
+
# end
|
21
28
|
end
|
@@ -1,4 +1,10 @@
|
|
1
1
|
class UserGrid < Netzke::Basepack::GridPanel
|
2
2
|
js_property :title, "Users"
|
3
|
-
|
3
|
+
def configuration
|
4
|
+
super.merge(
|
5
|
+
:model => "User",
|
6
|
+
# :columns => [:first_name, {:name => :address__city}]
|
7
|
+
# :edit_form_config => {:items => [{:name => :first_name, :xtype => :htmleditor}]}
|
8
|
+
)
|
9
|
+
end
|
4
10
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class ComponentsController < ApplicationController
|
2
|
-
def
|
3
|
-
component_name = params[:component].gsub("::", "
|
2
|
+
def index
|
3
|
+
component_name = params[:component].gsub("::", "_").underscore
|
4
4
|
render :inline => "<%= netzke :#{component_name}, :class_name => '#{params[:component]}' %>", :layout => true
|
5
5
|
end
|
6
|
-
end
|
6
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= netzke :simple_panel, :html => "Simple Panel content" %>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<%# Use this layout when you dynamically load views with other Netzke components into some Ext.Panel, e.g. with Ext.updater.
|
2
|
+
Because the main Netzke/Ext code is already loaded, all we need to load is the JavaScript for components that are
|
3
|
+
embedded in the loaded view. TODO: fix class caching in this scenario. %>
|
4
|
+
<%= netzke_js %>
|
5
|
+
<%= yield %>
|
@@ -31,7 +31,7 @@ module RailsApp
|
|
31
31
|
|
32
32
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
33
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
-
# config.i18n.default_locale = :
|
34
|
+
# config.i18n.default_locale = :en
|
35
35
|
|
36
36
|
# JavaScript files you want as :defaults (application.js is always included).
|
37
37
|
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
|
@@ -9,3 +9,19 @@ es:
|
|
9
9
|
add_in_form: Aggregar en forma
|
10
10
|
edit_in_form: Editar en forma
|
11
11
|
search: Buscar
|
12
|
+
form_panel:
|
13
|
+
apply: Aplicar
|
14
|
+
activerecord:
|
15
|
+
models:
|
16
|
+
book: Libro
|
17
|
+
attributes:
|
18
|
+
book:
|
19
|
+
author__name: "Autor"
|
20
|
+
author__first_name: "Autor"
|
21
|
+
in_abundance: "En abundancia"
|
22
|
+
title: "Título"
|
23
|
+
exemplars: "Ejemplares"
|
24
|
+
digitized: "Digitalizado"
|
25
|
+
notes: "Notas"
|
26
|
+
created_at: "Creado en"
|
27
|
+
updated_at: "Actualizado en"
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/netzke-basepack')
|
2
2
|
|
3
3
|
RailsApp::Application.routes.draw do
|
4
|
+
get "embedded_components/index"
|
5
|
+
|
4
6
|
# The priority is based upon order of creation:
|
5
7
|
# first created -> highest priority.
|
6
8
|
|
@@ -57,7 +59,8 @@ RailsApp::Application.routes.draw do
|
|
57
59
|
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
58
60
|
# Note: This route will make all actions in every controller accessible via GET requests.
|
59
61
|
|
60
|
-
match 'components/:component' => 'components#
|
62
|
+
match 'components/:component' => 'components#index', :as => "components"
|
63
|
+
match 'components/embedded/:action' => 'components', :as => "embedded_components"
|
61
64
|
|
62
65
|
match ':controller(/:action(/:id(.:format)))'
|
63
66
|
|
@@ -5,7 +5,7 @@ CREATE TABLE `authors` (
|
|
5
5
|
`created_at` datetime DEFAULT NULL,
|
6
6
|
`updated_at` datetime DEFAULT NULL,
|
7
7
|
PRIMARY KEY (`id`)
|
8
|
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
8
|
+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
9
9
|
|
10
10
|
CREATE TABLE `books` (
|
11
11
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
@@ -16,8 +16,33 @@ CREATE TABLE `books` (
|
|
16
16
|
`notes` text COLLATE utf8_unicode_ci,
|
17
17
|
`created_at` datetime DEFAULT NULL,
|
18
18
|
`updated_at` datetime DEFAULT NULL,
|
19
|
+
`tags` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
20
|
+
`rating` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
19
21
|
PRIMARY KEY (`id`)
|
20
|
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
22
|
+
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
23
|
+
|
24
|
+
CREATE TABLE `localized_models` (
|
25
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
26
|
+
`attr1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
27
|
+
`attr2` int(11) DEFAULT NULL,
|
28
|
+
`created_at` datetime DEFAULT NULL,
|
29
|
+
`updated_at` datetime DEFAULT NULL,
|
30
|
+
PRIMARY KEY (`id`)
|
31
|
+
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
32
|
+
|
33
|
+
CREATE TABLE `netzke_component_states` (
|
34
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
35
|
+
`component` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
36
|
+
`user_id` int(11) DEFAULT NULL,
|
37
|
+
`role_id` int(11) DEFAULT NULL,
|
38
|
+
`value` text COLLATE utf8_unicode_ci,
|
39
|
+
`created_at` datetime DEFAULT NULL,
|
40
|
+
`updated_at` datetime DEFAULT NULL,
|
41
|
+
PRIMARY KEY (`id`),
|
42
|
+
KEY `index_netzke_component_states_on_component` (`component`),
|
43
|
+
KEY `index_netzke_component_states_on_user_id` (`user_id`),
|
44
|
+
KEY `index_netzke_component_states_on_role_id` (`role_id`)
|
45
|
+
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
21
46
|
|
22
47
|
CREATE TABLE `netzke_preferences` (
|
23
48
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
@@ -51,7 +76,7 @@ CREATE TABLE `users` (
|
|
51
76
|
`created_at` datetime DEFAULT NULL,
|
52
77
|
`updated_at` datetime DEFAULT NULL,
|
53
78
|
PRIMARY KEY (`id`)
|
54
|
-
) ENGINE=InnoDB AUTO_INCREMENT=
|
79
|
+
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
55
80
|
|
56
81
|
INSERT INTO schema_migrations (version) VALUES ('20100905214933');
|
57
82
|
|
@@ -61,4 +86,8 @@ INSERT INTO schema_migrations (version) VALUES ('20100914104236');
|
|
61
86
|
|
62
87
|
INSERT INTO schema_migrations (version) VALUES ('20101026185816');
|
63
88
|
|
64
|
-
INSERT INTO schema_migrations (version) VALUES ('20101026190021');
|
89
|
+
INSERT INTO schema_migrations (version) VALUES ('20101026190021');
|
90
|
+
|
91
|
+
INSERT INTO schema_migrations (version) VALUES ('20101104124509');
|
92
|
+
|
93
|
+
INSERT INTO schema_migrations (version) VALUES ('20101127092414');
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreateAddresses < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :addresses do |t|
|
4
|
+
t.integer :user_id
|
5
|
+
t.string :street
|
6
|
+
t.string :city
|
7
|
+
t.string :postcode
|
8
|
+
t.integer :country_id
|
9
|
+
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.down
|
15
|
+
drop_table :addresses
|
16
|
+
end
|
17
|
+
end
|
data/test/rails_app/db/schema.rb
CHANGED
@@ -10,7 +10,17 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended to check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(:version =>
|
13
|
+
ActiveRecord::Schema.define(:version => 20110101143818) do
|
14
|
+
|
15
|
+
create_table "addresses", :force => true do |t|
|
16
|
+
t.integer "user_id"
|
17
|
+
t.string "street"
|
18
|
+
t.string "city"
|
19
|
+
t.string "postcode"
|
20
|
+
t.integer "country_id"
|
21
|
+
t.datetime "created_at"
|
22
|
+
t.datetime "updated_at"
|
23
|
+
end
|
14
24
|
|
15
25
|
create_table "authors", :force => true do |t|
|
16
26
|
t.string "first_name"
|
@@ -27,8 +37,30 @@ ActiveRecord::Schema.define(:version => 20101026190021) do
|
|
27
37
|
t.text "notes"
|
28
38
|
t.datetime "created_at"
|
29
39
|
t.datetime "updated_at"
|
40
|
+
t.string "tags"
|
41
|
+
t.string "rating"
|
42
|
+
end
|
43
|
+
|
44
|
+
create_table "localized_models", :force => true do |t|
|
45
|
+
t.string "attr1"
|
46
|
+
t.integer "attr2"
|
47
|
+
t.datetime "created_at"
|
48
|
+
t.datetime "updated_at"
|
30
49
|
end
|
31
50
|
|
51
|
+
create_table "netzke_component_states", :force => true do |t|
|
52
|
+
t.string "component"
|
53
|
+
t.integer "user_id"
|
54
|
+
t.integer "role_id"
|
55
|
+
t.text "value"
|
56
|
+
t.datetime "created_at"
|
57
|
+
t.datetime "updated_at"
|
58
|
+
end
|
59
|
+
|
60
|
+
add_index "netzke_component_states", ["component"], :name => "index_netzke_component_states_on_component"
|
61
|
+
add_index "netzke_component_states", ["role_id"], :name => "index_netzke_component_states_on_role_id"
|
62
|
+
add_index "netzke_component_states", ["user_id"], :name => "index_netzke_component_states_on_user_id"
|
63
|
+
|
32
64
|
create_table "netzke_preferences", :force => true do |t|
|
33
65
|
t.string "key"
|
34
66
|
t.text "value"
|