edgarj 0.02.00 → 4.00.01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.rdoc +8 -2
- data/Rakefile +3 -9
- data/app/views/edgarj/popup/_message_popup.html.erb +1 -0
- data/app/views/edgarj/popup/message_popup.js.erb +1 -0
- data/lib/edgarj.rb +2 -2
- data/lib/edgarj/engine.rb +4 -6
- data/lib/edgarj/version.rb +1 -1
- data/lib/tasks/edgarj_tasks.rake +4 -32
- data/lib/tasks/{pakcage.rake → package.rake} +1 -1
- data/test/{functional → controllers}/edgarj/edgarj_controller_test.rb +0 -0
- data/test/{functional → controllers}/edgarj/model_permissions_controller_test.rb +0 -0
- data/test/{functional → controllers}/edgarj/user_group_users_controller_test.rb +0 -0
- data/test/dummy/app/models/user.rb +0 -2
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/application.rb +0 -36
- data/test/dummy/config/boot.rb +4 -9
- data/test/dummy/config/database.yml +8 -8
- data/test/dummy/config/environments/development.rb +7 -17
- data/test/dummy/config/environments/production.rb +2 -1
- data/test/dummy/config/environments/test.rb +7 -2
- data/test/dummy/config/initializers/config.rb +3 -0
- data/test/dummy/config/initializers/secret_token.rb +1 -1
- data/test/dummy/config/settings/development.yml +0 -0
- data/test/dummy/config/settings/production.yml +0 -0
- data/test/dummy/config/settings/test.yml +0 -0
- data/test/dummy/db/schema.rb +34 -34
- data/test/dummy/test/{functional → controllers}/authors_controller_test.rb +0 -0
- data/test/dummy/test/{functional → controllers}/authors_popup_controller_test.rb +0 -0
- data/test/dummy/test/{functional → controllers}/books_controller_test.rb +0 -0
- data/test/dummy/test/{unit → models}/author_test.rb +0 -0
- data/test/dummy/test/{unit → models}/book_test.rb +0 -0
- data/test/dummy/test/{unit → models}/rails_config_test.rb +0 -0
- data/test/{edgar_test.rb → edgarj_test.rb} +0 -0
- data/test/fixtures/edgarj/model_permissions.yml +14 -14
- data/test/fixtures/edgarj/page_infos.yml +3 -3
- data/test/{unit → models}/edgarj/model_permission_test.rb +0 -0
- data/test/{unit → models}/edgarj/page_info_test.rb +0 -0
- data/test/{unit → models}/edgarj/sssn_test.rb +1 -1
- data/test/{unit → models}/edgarj/user_group_test.rb +0 -0
- data/test/{unit → models}/edgarj/user_group_user_test.rb +0 -0
- data/test/{unit → models}/helpers/edgarj/model_permissions_helper_test.rb +0 -0
- data/test/{unit → models}/helpers/edgarj/user_group_users_helper_test.rb +0 -0
- data/test/test_helper.rb +3 -3
- metadata +115 -154
- data/app/views/edgarj/popup/_message_popup.html.erb +0 -15
- data/app/views/edgarj/popup/message_popup.js.erb +0 -3
- data/lib/core_ext/rails_config.rb +0 -10
- data/lib/edgarj/templates/rails/helper/helper.rb +0 -10
- data/lib/edgarj/templates/test_unit/scaffold/functional_test.rb +0 -575
- data/lib/generators/edgarj/popup_scaffold/USAGE +0 -6
- data/lib/generators/edgarj/popup_scaffold/popup_scaffold_generator.rb +0 -35
- data/lib/generators/edgarj/popup_scaffold/templates/controller.rb +0 -13
- data/lib/generators/edgarj/popup_scaffold/templates/functional_test.rb +0 -207
- data/lib/generators/edgarj/popup_scaffold/templates/helper.rb +0 -9
- data/lib/generators/edgarj/scaffold/USAGE +0 -17
- data/lib/generators/edgarj/scaffold/scaffold_generator.rb +0 -40
- data/lib/generators/edgarj/scaffold/templates/controller.rb +0 -13
- data/test/dummy/config/initializers/strong_parameter.rb +0 -3
- data/test/dummy/script/rails +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78243fdcab707dbeac350906f89f705d2cccd14e
|
|
4
|
+
data.tar.gz: bd4ac5f2abfaac9965efb0e5f4ae12ebaede4271
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ea4ff6b1ee9c5e1a5b42448f89033115a6cbc09cb4677bcc78e69dfe1addce8858723d5d4b7cb79ec1cf186bff3be59c1864ad43b2bd29a48b0a65a4dbc22a2
|
|
7
|
+
data.tar.gz: bf3d9539d253c0ac27fb2d2494f935d4479f1cfb81fe1d00165752b592004054d9f4b317dda6adcb32f39531ef4b4fcdcf9dc8f103218e3e5c3ce1e438891c9a
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
|
@@ -12,9 +12,14 @@ Edgarj is an Ajax-based scaffold with:
|
|
|
12
12
|
1. select columns and its order on view for list, form, and search-form
|
|
13
13
|
1. overwrite partial-template for each list, form, and search-form
|
|
14
14
|
|
|
15
|
+
== Version
|
|
16
|
+
|
|
17
|
+
Edgarj 4.* for Rails 4
|
|
18
|
+
Edgarj 0.* for Rails 3.2
|
|
19
|
+
|
|
15
20
|
== Prerequisites
|
|
16
21
|
|
|
17
|
-
* Rails
|
|
22
|
+
* Rails
|
|
18
23
|
* external 'User' model.
|
|
19
24
|
|
|
20
25
|
== KNOWN BUGS
|
|
@@ -26,8 +31,9 @@ Edgarj is an Ajax-based scaffold with:
|
|
|
26
31
|
|
|
27
32
|
1. check if all tests are passed:
|
|
28
33
|
$ rake test
|
|
34
|
+
1. commit any updated files.
|
|
29
35
|
1. Gem package is built under pkg/edgarj-N.NN.NN.gem by:
|
|
30
36
|
$ rake app:edgarj:build_gem
|
|
31
|
-
1. commit Gemfile.lock
|
|
37
|
+
1. commit Gemfile.lock since it is updated.
|
|
32
38
|
1. puch the package to rubygems site by:
|
|
33
39
|
$ gem push pkg/edgarj-N.NN.NN.gem
|
data/Rakefile
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
#!/usr/bin/env rake
|
|
2
1
|
begin
|
|
3
2
|
require 'bundler/setup'
|
|
4
3
|
rescue LoadError
|
|
5
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
6
5
|
end
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
rescue LoadError
|
|
10
|
-
require 'rdoc/rdoc'
|
|
11
|
-
require 'rake/rdoctask'
|
|
12
|
-
RDoc::Task = Rake::RDocTask
|
|
13
|
-
end
|
|
6
|
+
|
|
7
|
+
require 'rdoc/task'
|
|
14
8
|
|
|
15
9
|
RDoc::Task.new(:rdoc) do |rdoc|
|
|
16
10
|
rdoc.rdoc_dir = 'rdoc'
|
|
@@ -37,4 +31,4 @@ Rake::TestTask.new(:test) do |t|
|
|
|
37
31
|
end
|
|
38
32
|
|
|
39
33
|
|
|
40
|
-
task :
|
|
34
|
+
task default: :test
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../edgarj/_message_popup.html.erb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../edgarj/message_popup.js.erb
|
data/lib/edgarj.rb
CHANGED
|
@@ -7,8 +7,8 @@ module Edgarj
|
|
|
7
7
|
LINES_PER_PAGE = [2, 5, 10,20,50,100,200].freeze
|
|
8
8
|
LIST_TEXT_MAX_LEN = 20
|
|
9
9
|
|
|
10
|
-
# ActiveRecord::
|
|
10
|
+
# ActiveRecord::FixtureSet.identify へのショートカット
|
|
11
11
|
def self.label(label)
|
|
12
|
-
ActiveRecord::
|
|
12
|
+
ActiveRecord::FixtureSet.identify(label)
|
|
13
13
|
end
|
|
14
14
|
end
|
data/lib/edgarj/engine.rb
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
require 'core_ext/active_record'
|
|
2
|
+
require 'core_ext/resources'
|
|
3
|
+
require 'edgarj/enum_cache'
|
|
4
|
+
|
|
1
5
|
module Edgarj
|
|
2
6
|
class Engine < ::Rails::Engine
|
|
3
|
-
require 'rails_config'
|
|
4
|
-
require 'core_ext/rails_config'
|
|
5
|
-
require 'core_ext/active_record'
|
|
6
|
-
require 'core_ext/resources'
|
|
7
|
-
require 'edgarj/enum_cache'
|
|
8
|
-
|
|
9
7
|
config.app_generators do |g|
|
|
10
8
|
g.templates.unshift File::expand_path('../templates', __FILE__)
|
|
11
9
|
end
|
data/lib/edgarj/version.rb
CHANGED
data/lib/tasks/edgarj_tasks.rake
CHANGED
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
desc 'upload to sourceforge'
|
|
6
|
-
task up: [:yard, :gen_juli] do
|
|
7
|
-
sh <<-EOSH
|
|
8
|
-
cd doc/www
|
|
9
|
-
rsync -avz --delete . ido00,jjedgarj@web.sourceforge.net:htdocs/
|
|
10
|
-
EOSH
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
desc 'generate documents'
|
|
14
|
-
task :gen_juli do
|
|
15
|
-
sh <<-EOSH
|
|
16
|
-
unset RUBYOPT
|
|
17
|
-
(cd doc/doc-en; juli; juli sitemap; juli recent_update)
|
|
18
|
-
(cd doc/doc-jp; juli; juli sitemap; juli recent_update)
|
|
19
|
-
EOSH
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
YARD::Rake::YardocTask.new do |t|
|
|
23
|
-
#t.files = ['lib/**/*.rb', OTHER_PATHS] # optional
|
|
24
|
-
|
|
25
|
-
# NOTE: --exclude option value should be Regex rather than
|
|
26
|
-
# shell wildcard (e.g. foo/**/*.rb)
|
|
27
|
-
t.options = %w(--private -o doc/www/api
|
|
28
|
-
--exclude lib/edgarj/templates
|
|
29
|
-
--exclude lib/generators/edgarj/.*/templates)
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
1
|
+
# desc "Explaining what the task does"
|
|
2
|
+
# task :edgarj do
|
|
3
|
+
# # Task goes here
|
|
4
|
+
# end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
class User < ActiveRecord::Base
|
|
2
|
-
attr_accessible :code, :name
|
|
3
|
-
|
|
4
2
|
has_many :user_group_users, dependent: :destroy, class_name: 'Edgarj::UserGroupUser'
|
|
5
3
|
has_many :user_groups, through: :user_group_users, class_name: 'Edgarj::UserGroup'
|
|
6
4
|
has_many :sssns, dependent: :destroy, class_name: 'Edgarj::Sssn'
|
data/test/dummy/config.ru
CHANGED
|
@@ -11,16 +11,6 @@ module Dummy
|
|
|
11
11
|
# Application configuration should go into files in config/initializers
|
|
12
12
|
# -- all .rb files in that directory are automatically loaded.
|
|
13
13
|
|
|
14
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
|
15
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
|
16
|
-
|
|
17
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
|
18
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
|
19
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
20
|
-
|
|
21
|
-
# Activate observers that should always be running.
|
|
22
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
|
23
|
-
|
|
24
14
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
25
15
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
26
16
|
# config.time_zone = 'Central Time (US & Canada)'
|
|
@@ -28,32 +18,6 @@ module Dummy
|
|
|
28
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
29
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
30
20
|
# config.i18n.default_locale = :de
|
|
31
|
-
|
|
32
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
|
33
|
-
config.encoding = "utf-8"
|
|
34
|
-
|
|
35
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
|
36
|
-
config.filter_parameters += [:password]
|
|
37
|
-
|
|
38
|
-
# Enable escaping HTML in JSON.
|
|
39
|
-
config.active_support.escape_html_entities_in_json = true
|
|
40
|
-
|
|
41
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
|
42
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
43
|
-
# like if you have constraints or database-specific column types
|
|
44
|
-
# config.active_record.schema_format = :sql
|
|
45
|
-
|
|
46
|
-
# Enforce whitelist mode for mass assignment.
|
|
47
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
|
48
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
|
49
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
|
50
|
-
config.active_record.whitelist_attributes = false
|
|
51
|
-
|
|
52
|
-
# Enable the asset pipeline
|
|
53
|
-
config.assets.enabled = true
|
|
54
|
-
|
|
55
|
-
# Version of your assets, change this if you want to expire all your assets
|
|
56
|
-
config.assets.version = '1.0'
|
|
57
21
|
end
|
|
58
22
|
end
|
|
59
23
|
|
data/test/dummy/config/boot.rb
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# Set up gems listed in the Gemfile.
|
|
2
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
|
3
3
|
|
|
4
|
-
if File.exist?(
|
|
5
|
-
|
|
6
|
-
require 'bundler'
|
|
7
|
-
Bundler.setup
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
|
4
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
|
5
|
+
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
common: &common
|
|
2
|
-
adapter:
|
|
3
|
-
encoding:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
adapter: mysql2
|
|
3
|
+
encoding: utf8
|
|
4
|
+
pool: 5
|
|
5
|
+
username: rails
|
|
6
|
+
password: rails
|
|
7
|
+
socket: /var/lib/mysql/mysql.sock
|
|
8
8
|
|
|
9
9
|
development:
|
|
10
|
-
database:
|
|
10
|
+
database: edgarj4_dummy_dev
|
|
11
11
|
<<: *common
|
|
12
12
|
|
|
13
13
|
test:
|
|
14
|
-
database:
|
|
14
|
+
database: edgarj4_dummy_test
|
|
15
15
|
<<: *common
|
|
@@ -6,8 +6,8 @@ Dummy::Application.configure do
|
|
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
|
7
7
|
config.cache_classes = false
|
|
8
8
|
|
|
9
|
-
#
|
|
10
|
-
config.
|
|
9
|
+
# Do not eager load code on boot.
|
|
10
|
+
config.eager_load = false
|
|
11
11
|
|
|
12
12
|
# Show full error reports and disable caching.
|
|
13
13
|
config.consider_all_requests_local = true
|
|
@@ -19,24 +19,14 @@ Dummy::Application.configure do
|
|
|
19
19
|
# Print deprecation notices to the Rails logger.
|
|
20
20
|
config.active_support.deprecation = :log
|
|
21
21
|
|
|
22
|
-
# Raise an error on page load if there are
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# Only use best-standards-support built into browsers
|
|
26
|
-
config.action_dispatch.best_standards_support = :builtin
|
|
27
|
-
|
|
28
|
-
# Raise exception on mass assignment protection for Active Record models
|
|
29
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
|
30
|
-
|
|
31
|
-
# Log the query plan for queries taking more than this (works
|
|
32
|
-
# with SQLite, MySQL, and PostgreSQL)
|
|
33
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
|
34
|
-
|
|
35
|
-
# Do not compress assets
|
|
36
|
-
config.assets.compress = false
|
|
22
|
+
# Raise an error on page load if there are pending migrations
|
|
23
|
+
config.active_record.migration_error = :page_load
|
|
37
24
|
|
|
38
25
|
# Debug mode disables concatenation and preprocessing of assets.
|
|
39
26
|
# This option may cause significant delays in view rendering with a large
|
|
40
27
|
# number of complex assets.
|
|
41
28
|
config.assets.debug = true
|
|
29
|
+
|
|
30
|
+
# Raises error for missing translations
|
|
31
|
+
# config.action_view.raise_on_missing_translations = true
|
|
42
32
|
end
|
|
@@ -23,7 +23,8 @@ Dummy::Application.configure do
|
|
|
23
23
|
config.serve_static_assets = false
|
|
24
24
|
|
|
25
25
|
# Compress JavaScripts and CSS.
|
|
26
|
-
config.assets.
|
|
26
|
+
config.assets.js_compressor = :uglifier
|
|
27
|
+
# config.assets.css_compressor = :sass
|
|
27
28
|
|
|
28
29
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
|
29
30
|
config.assets.compile = false
|
|
@@ -7,8 +7,10 @@ Dummy::Application.configure do
|
|
|
7
7
|
# and recreated between test runs. Don't rely on the data there!
|
|
8
8
|
config.cache_classes = true
|
|
9
9
|
|
|
10
|
-
#
|
|
11
|
-
|
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
|
13
|
+
config.eager_load = false
|
|
12
14
|
|
|
13
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
|
14
16
|
config.serve_static_assets = true
|
|
@@ -31,4 +33,7 @@ Dummy::Application.configure do
|
|
|
31
33
|
|
|
32
34
|
# Print deprecation notices to the stderr.
|
|
33
35
|
config.active_support.deprecation = :stderr
|
|
36
|
+
|
|
37
|
+
# Raises error for missing translations
|
|
38
|
+
# config.action_view.raise_on_missing_translations = true
|
|
34
39
|
end
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
|
11
11
|
# if you're sharing your code publicly.
|
|
12
|
-
Dummy::Application.config.secret_key_base = '
|
|
12
|
+
Dummy::Application.config.secret_key_base = '957e7235ecc6ed6bc46957e57d4168f6c6781b2378aa6544ff4b4d11a2baba71560659d4b135539797417fa4e84cdd508d68074aa06d1ea2f2f6255a02729f9d'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/test/dummy/db/schema.rb
CHANGED
|
@@ -9,36 +9,36 @@
|
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
11
11
|
#
|
|
12
|
-
# It's strongly recommended
|
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(:
|
|
14
|
+
ActiveRecord::Schema.define(version: 20160119053447) do
|
|
15
15
|
|
|
16
|
-
create_table "authors", :
|
|
16
|
+
create_table "authors", force: true do |t|
|
|
17
17
|
t.string "name"
|
|
18
|
-
t.datetime "created_at"
|
|
19
|
-
t.datetime "updated_at"
|
|
18
|
+
t.datetime "created_at"
|
|
19
|
+
t.datetime "updated_at"
|
|
20
20
|
t.integer "user_group_id"
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
create_table "books", :
|
|
23
|
+
create_table "books", force: true do |t|
|
|
24
24
|
t.integer "author_id"
|
|
25
25
|
t.string "name"
|
|
26
|
-
t.datetime "created_at"
|
|
27
|
-
t.datetime "updated_at"
|
|
26
|
+
t.datetime "created_at"
|
|
27
|
+
t.datetime "updated_at"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
create_table "edgarj_model_permissions", :
|
|
30
|
+
create_table "edgarj_model_permissions", force: true do |t|
|
|
31
31
|
t.integer "user_group_id"
|
|
32
32
|
t.string "name"
|
|
33
33
|
t.integer "flags"
|
|
34
|
-
t.datetime "created_at", :
|
|
35
|
-
t.datetime "updated_at", :
|
|
34
|
+
t.datetime "created_at", null: false
|
|
35
|
+
t.datetime "updated_at", null: false
|
|
36
36
|
t.string "model"
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
add_index "edgarj_model_permissions", ["model"], :
|
|
39
|
+
add_index "edgarj_model_permissions", ["model"], name: "index_edgarj_model_permissions_on_model", using: :btree
|
|
40
40
|
|
|
41
|
-
create_table "edgarj_page_infos", :
|
|
41
|
+
create_table "edgarj_page_infos", force: true do |t|
|
|
42
42
|
t.integer "sssn_id"
|
|
43
43
|
t.string "view"
|
|
44
44
|
t.string "order_by"
|
|
@@ -46,48 +46,48 @@ ActiveRecord::Schema.define(:version => 20141209053055) do
|
|
|
46
46
|
t.integer "page"
|
|
47
47
|
t.integer "lines"
|
|
48
48
|
t.text "record_data"
|
|
49
|
-
t.datetime "created_at"
|
|
50
|
-
t.datetime "updated_at"
|
|
49
|
+
t.datetime "created_at"
|
|
50
|
+
t.datetime "updated_at"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
create_table "edgarj_sssns", :
|
|
54
|
-
t.string "session_id", :
|
|
53
|
+
create_table "edgarj_sssns", force: true do |t|
|
|
54
|
+
t.string "session_id", null: false
|
|
55
55
|
t.text "data"
|
|
56
56
|
t.integer "user_id"
|
|
57
|
-
t.datetime "created_at"
|
|
58
|
-
t.datetime "updated_at"
|
|
57
|
+
t.datetime "created_at"
|
|
58
|
+
t.datetime "updated_at"
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
add_index "edgarj_sssns", ["session_id"], :
|
|
62
|
-
add_index "edgarj_sssns", ["updated_at"], :
|
|
61
|
+
add_index "edgarj_sssns", ["session_id"], name: "index_edgarj_sssns_on_session_id", using: :btree
|
|
62
|
+
add_index "edgarj_sssns", ["updated_at"], name: "index_edgarj_sssns_on_updated_at", using: :btree
|
|
63
63
|
|
|
64
|
-
create_table "edgarj_user_group_users", :
|
|
64
|
+
create_table "edgarj_user_group_users", force: true do |t|
|
|
65
65
|
t.integer "user_group_id"
|
|
66
66
|
t.integer "user_id"
|
|
67
|
-
t.datetime "created_at"
|
|
68
|
-
t.datetime "updated_at"
|
|
67
|
+
t.datetime "created_at"
|
|
68
|
+
t.datetime "updated_at"
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
create_table "edgarj_user_groups", :
|
|
71
|
+
create_table "edgarj_user_groups", force: true do |t|
|
|
72
72
|
t.integer "kind"
|
|
73
73
|
t.string "name"
|
|
74
74
|
t.integer "parent_id"
|
|
75
75
|
t.integer "lft"
|
|
76
76
|
t.integer "rgt"
|
|
77
|
-
t.datetime "created_at"
|
|
78
|
-
t.datetime "updated_at"
|
|
77
|
+
t.datetime "created_at"
|
|
78
|
+
t.datetime "updated_at"
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
add_index "edgarj_user_groups", ["kind"], :
|
|
82
|
-
add_index "edgarj_user_groups", ["lft"], :
|
|
83
|
-
add_index "edgarj_user_groups", ["parent_id"], :
|
|
84
|
-
add_index "edgarj_user_groups", ["rgt"], :
|
|
81
|
+
add_index "edgarj_user_groups", ["kind"], name: "index_edgarj_user_groups_on_kind", using: :btree
|
|
82
|
+
add_index "edgarj_user_groups", ["lft"], name: "index_edgarj_user_groups_on_lft", using: :btree
|
|
83
|
+
add_index "edgarj_user_groups", ["parent_id"], name: "index_edgarj_user_groups_on_parent_id", using: :btree
|
|
84
|
+
add_index "edgarj_user_groups", ["rgt"], name: "index_edgarj_user_groups_on_rgt", using: :btree
|
|
85
85
|
|
|
86
|
-
create_table "users", :
|
|
86
|
+
create_table "users", force: true do |t|
|
|
87
87
|
t.string "code"
|
|
88
88
|
t.string "name"
|
|
89
|
-
t.datetime "created_at"
|
|
90
|
-
t.datetime "updated_at"
|
|
89
|
+
t.datetime "created_at"
|
|
90
|
+
t.datetime "updated_at"
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
end
|