phcmembers 11.0.0 → 12.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +45 -45
- data/Rakefile +33 -33
- data/app/assets/config/phcmembers_manifest.js +2 -2
- data/app/assets/javascripts/phcmembers/application.js +2 -2
- data/app/assets/stylesheets/phcmembers/application.scss +2 -2
- data/app/controllers/phcmembers/api/directories_controller.rb +18 -18
- data/app/controllers/phcmembers/application_controller.rb +17 -17
- data/app/controllers/phcmembers/directory/categories_controller.rb +68 -68
- data/app/controllers/phcmembers/directory/categorylistings_controller.rb +21 -21
- data/app/controllers/phcmembers/member/addresses_controller.rb +75 -75
- data/app/controllers/phcmembers/member/listings_controller.rb +77 -77
- data/app/controllers/phcmembers/member/profiles_controller.rb +68 -68
- data/app/controllers/phcmembers/modules/dashboards_controller.rb +14 -14
- data/app/helpers/phcmembers/application_helper.rb +14 -14
- data/app/jobs/phcmembers/application_job.rb +4 -4
- data/app/mailers/phcmembers/application_mailer.rb +8 -8
- data/app/models/phcmembers/application_record.rb +5 -5
- data/app/models/phcmembers/connections.rb +7 -7
- data/app/models/phcmembers/directory.rb +7 -7
- data/app/models/phcmembers/directory/category.rb +29 -19
- data/app/models/phcmembers/directory/categorylisting.rb +12 -18
- data/app/models/phcmembers/member.rb +7 -7
- data/app/models/phcmembers/member/address.rb +45 -17
- data/app/models/phcmembers/member/listing.rb +66 -26
- data/app/models/phcmembers/member/profile.rb +49 -49
- data/app/models/phcmembers/versions_address.rb +5 -0
- data/app/models/phcmembers/versions_category.rb +5 -0
- data/app/models/phcmembers/versions_category_listing.rb +5 -0
- data/app/models/phcmembers/versions_listing.rb +5 -0
- data/app/models/phcmembers/versions_profile.rb +5 -0
- data/app/views/layouts/phcmembers/application.html.erb +56 -56
- data/app/views/layouts/phcmembers/components/backend/footer/_footer.html.erb +4 -4
- data/app/views/layouts/phcmembers/components/backend/navigation/_navigation.html.erb +60 -60
- data/app/views/layouts/phcmembers/components/backend/topbar/_topbar.html.erb +5 -5
- data/app/views/layouts/phcmembers/components/backend/topbar/_topbar_links.html.erb +0 -0
- data/app/views/layouts/phcmembers/directory/directory_all.html.erb +56 -56
- data/app/views/layouts/phcmembers/members/members_all.html.erb +56 -56
- data/app/views/phcmembers/directory/categories/_form.html.erb +15 -15
- data/app/views/phcmembers/directory/categories/components/_category_audits.html.erb +14 -14
- data/app/views/phcmembers/directory/categories/components/_category_list.html.erb +7 -7
- data/app/views/phcmembers/directory/categories/components/_category_main.html.erb +31 -31
- data/app/views/phcmembers/directory/categories/edit.html.erb +38 -38
- data/app/views/phcmembers/directory/categories/index.html.erb +47 -47
- data/app/views/phcmembers/directory/categories/new.html.erb +36 -36
- data/app/views/phcmembers/directory/categories/show.html.erb +27 -27
- data/app/views/phcmembers/directory/categorylistings/index.html.erb +63 -63
- data/app/views/phcmembers/directory/categorylistings/show.html.erb +4 -4
- data/app/views/phcmembers/member/addresses/_form.html.erb +44 -44
- data/app/views/phcmembers/member/addresses/components/_address_address.html.erb +29 -29
- data/app/views/phcmembers/member/addresses/components/_address_audits.html.erb +12 -12
- data/app/views/phcmembers/member/addresses/components/_address_main.html.erb +31 -31
- data/app/views/phcmembers/member/addresses/edit.html.erb +40 -40
- data/app/views/phcmembers/member/addresses/index.html.erb +74 -74
- data/app/views/phcmembers/member/addresses/new.html.erb +40 -40
- data/app/views/phcmembers/member/addresses/show.html.erb +27 -27
- data/app/views/phcmembers/member/listings/_form.html.erb +68 -68
- data/app/views/phcmembers/member/listings/components/_listing_address.html.erb +48 -48
- data/app/views/phcmembers/member/listings/components/_listing_audits.html.erb +14 -14
- data/app/views/phcmembers/member/listings/components/_listing_main.html.erb +31 -31
- data/app/views/phcmembers/member/listings/edit.html.erb +40 -40
- data/app/views/phcmembers/member/listings/index.html.erb +76 -76
- data/app/views/phcmembers/member/listings/new.html.erb +40 -40
- data/app/views/phcmembers/member/listings/show.html.erb +27 -27
- data/app/views/phcmembers/member/profiles/_form.html.erb +36 -36
- data/app/views/phcmembers/member/profiles/components/_profile_main.html.erb +44 -44
- data/app/views/phcmembers/member/profiles/components/_profile_sidebar.html.erb +28 -28
- data/app/views/phcmembers/member/profiles/edit.html.erb +39 -39
- data/app/views/phcmembers/member/profiles/index.html.erb +68 -68
- data/app/views/phcmembers/member/profiles/new.html.erb +39 -39
- data/app/views/phcmembers/member/profiles/show.html.erb +31 -31
- data/app/views/phcmembers/modules/dashboards/index.html.erb +66 -66
- data/config/initializers/friendly_id.rb +92 -92
- data/config/initializers/paper_trail.rb +1 -0
- data/config/locales/en.yml +9 -9
- data/config/routes.rb +36 -36
- data/db/migrate/20160724220339_create_phcmembers_member_profiles.rb +23 -23
- data/db/migrate/20160725153306_create_phcmembers_member_addresses.rb +26 -26
- data/db/migrate/20160725182257_create_phcmembers_directory_categories.rb +18 -18
- data/db/migrate/20160727024006_create_phcmembers_member_listings.rb +30 -30
- data/db/migrate/20160727042756_create_phcmembers_directory_categorylistings.rb +19 -19
- data/db/migrate/20170509002355_create_phcmembers_friendly_id_slugs.rb +15 -0
- data/db/migrate/20170517064030_create_phcmembers_versions_profiles.rb +12 -0
- data/db/migrate/20170517064049_create_phcmembers_versions_listings.rb +12 -0
- data/db/migrate/20170517064114_create_phcmembers_versions_addresses.rb +12 -0
- data/db/migrate/20170517064208_create_phcmembers_versions_categorylistings.rb +12 -0
- data/db/migrate/20170517064427_create_phcmembers_versions_categories.rb +12 -0
- data/lib/phcmembers.rb +4 -4
- data/lib/phcmembers/engine.rb +73 -73
- data/lib/phcmembers/version.rb +3 -3
- data/lib/tasks/phcmembers_tasks.rake +4 -4
- metadata +59 -7
- data/db/migrate/20160707154842_create_versions.rb +0 -80
- data/db/migrate/20170509002355_create_friendly_id_slugs.rb +0 -15
@@ -1,92 +1,92 @@
|
|
1
|
-
# FriendlyId Global Configuration
|
2
|
-
#
|
3
|
-
# Use this to set up shared configuration options for your entire application.
|
4
|
-
# Any of the configuration options shown here can also be applied to single
|
5
|
-
# models by passing arguments to the `friendly_id` class method or defining
|
6
|
-
# methods in your model.
|
7
|
-
#
|
8
|
-
# To learn more, check out the guide:
|
9
|
-
#
|
10
|
-
# http://norman.github.io/friendly_id/file.Guide.html
|
11
|
-
|
12
|
-
FriendlyId.defaults do |config|
|
13
|
-
# ## Reserved Words
|
14
|
-
#
|
15
|
-
# Some words could conflict with Rails's routes when used as slugs, or are
|
16
|
-
# undesirable to allow as slugs. Edit this list as needed for your app.
|
17
|
-
config.use :reserved
|
18
|
-
|
19
|
-
config.reserved_words = %w(new edit index session login logout users admin
|
20
|
-
stylesheets assets javascripts images)
|
21
|
-
|
22
|
-
# ## Friendly Finders
|
23
|
-
#
|
24
|
-
# Uncomment this to use friendly finders in all models. By default, if
|
25
|
-
# you wish to find a record by its friendly id, you must do:
|
26
|
-
#
|
27
|
-
# MyModel.friendly.find('foo')
|
28
|
-
#
|
29
|
-
# If you uncomment this, you can do:
|
30
|
-
#
|
31
|
-
# MyModel.find('foo')
|
32
|
-
#
|
33
|
-
# This is significantly more convenient but may not be appropriate for
|
34
|
-
# all applications, so you must explicity opt-in to this behavior. You can
|
35
|
-
# always also configure it on a per-model basis if you prefer.
|
36
|
-
#
|
37
|
-
# Something else to consider is that using the :finders addon boosts
|
38
|
-
# performance because it will avoid Rails-internal code that makes runtime
|
39
|
-
# calls to `Module.extend`.
|
40
|
-
#
|
41
|
-
# config.use :finders
|
42
|
-
#
|
43
|
-
# ## Slugs
|
44
|
-
#
|
45
|
-
# Most applications will use the :slugged module everywhere. If you wish
|
46
|
-
# to do so, uncomment the following line.
|
47
|
-
#
|
48
|
-
# config.use :slugged
|
49
|
-
#
|
50
|
-
# By default, FriendlyId's :slugged addon expects the slug column to be named
|
51
|
-
# 'slug', but you can change it if you wish.
|
52
|
-
#
|
53
|
-
# config.slug_column = 'slug'
|
54
|
-
#
|
55
|
-
# When FriendlyId can not generate a unique ID from your base method, it appends
|
56
|
-
# a UUID, separated by a single dash. You can configure the character used as the
|
57
|
-
# separator. If you're upgrading from FriendlyId 4, you may wish to replace this
|
58
|
-
# with two dashes.
|
59
|
-
#
|
60
|
-
# config.sequence_separator = '-'
|
61
|
-
#
|
62
|
-
# Note that you must use the :slugged addon **prior** to the line which
|
63
|
-
# configures the sequence separator, or else FriendlyId will raise an undefined
|
64
|
-
# method error.
|
65
|
-
#
|
66
|
-
# ## Tips and Tricks
|
67
|
-
#
|
68
|
-
# ### Controlling when slugs are generated
|
69
|
-
#
|
70
|
-
# As of FriendlyId 5.0, new slugs are generated only when the slug field is
|
71
|
-
# nil, but if you're using a column as your base method can change this
|
72
|
-
# behavior by overriding the `should_generate_new_friendly_id?` method that
|
73
|
-
# FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
|
74
|
-
# more like 4.0.
|
75
|
-
#
|
76
|
-
# config.use Module.new {
|
77
|
-
# def should_generate_new_friendly_id?
|
78
|
-
# slug.blank? || <your_column_name_here>_changed?
|
79
|
-
# end
|
80
|
-
# }
|
81
|
-
#
|
82
|
-
# FriendlyId uses Rails's `parameterize` method to generate slugs, but for
|
83
|
-
# languages that don't use the Roman alphabet, that's not usually sufficient.
|
84
|
-
# Here we use the Babosa library to transliterate Russian Cyrillic slugs to
|
85
|
-
# ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
|
86
|
-
#
|
87
|
-
# config.use Module.new {
|
88
|
-
# def normalize_friendly_id(text)
|
89
|
-
# text.to_slug.normalize! :transliterations => [:russian, :latin]
|
90
|
-
# end
|
91
|
-
# }
|
92
|
-
end
|
1
|
+
# FriendlyId Global Configuration
|
2
|
+
#
|
3
|
+
# Use this to set up shared configuration options for your entire application.
|
4
|
+
# Any of the configuration options shown here can also be applied to single
|
5
|
+
# models by passing arguments to the `friendly_id` class method or defining
|
6
|
+
# methods in your model.
|
7
|
+
#
|
8
|
+
# To learn more, check out the guide:
|
9
|
+
#
|
10
|
+
# http://norman.github.io/friendly_id/file.Guide.html
|
11
|
+
|
12
|
+
FriendlyId.defaults do |config|
|
13
|
+
# ## Reserved Words
|
14
|
+
#
|
15
|
+
# Some words could conflict with Rails's routes when used as slugs, or are
|
16
|
+
# undesirable to allow as slugs. Edit this list as needed for your app.
|
17
|
+
config.use :reserved
|
18
|
+
|
19
|
+
config.reserved_words = %w(new edit index session login logout users admin
|
20
|
+
stylesheets assets javascripts images)
|
21
|
+
|
22
|
+
# ## Friendly Finders
|
23
|
+
#
|
24
|
+
# Uncomment this to use friendly finders in all models. By default, if
|
25
|
+
# you wish to find a record by its friendly id, you must do:
|
26
|
+
#
|
27
|
+
# MyModel.friendly.find('foo')
|
28
|
+
#
|
29
|
+
# If you uncomment this, you can do:
|
30
|
+
#
|
31
|
+
# MyModel.find('foo')
|
32
|
+
#
|
33
|
+
# This is significantly more convenient but may not be appropriate for
|
34
|
+
# all applications, so you must explicity opt-in to this behavior. You can
|
35
|
+
# always also configure it on a per-model basis if you prefer.
|
36
|
+
#
|
37
|
+
# Something else to consider is that using the :finders addon boosts
|
38
|
+
# performance because it will avoid Rails-internal code that makes runtime
|
39
|
+
# calls to `Module.extend`.
|
40
|
+
#
|
41
|
+
# config.use :finders
|
42
|
+
#
|
43
|
+
# ## Slugs
|
44
|
+
#
|
45
|
+
# Most applications will use the :slugged module everywhere. If you wish
|
46
|
+
# to do so, uncomment the following line.
|
47
|
+
#
|
48
|
+
# config.use :slugged
|
49
|
+
#
|
50
|
+
# By default, FriendlyId's :slugged addon expects the slug column to be named
|
51
|
+
# 'slug', but you can change it if you wish.
|
52
|
+
#
|
53
|
+
# config.slug_column = 'slug'
|
54
|
+
#
|
55
|
+
# When FriendlyId can not generate a unique ID from your base method, it appends
|
56
|
+
# a UUID, separated by a single dash. You can configure the character used as the
|
57
|
+
# separator. If you're upgrading from FriendlyId 4, you may wish to replace this
|
58
|
+
# with two dashes.
|
59
|
+
#
|
60
|
+
# config.sequence_separator = '-'
|
61
|
+
#
|
62
|
+
# Note that you must use the :slugged addon **prior** to the line which
|
63
|
+
# configures the sequence separator, or else FriendlyId will raise an undefined
|
64
|
+
# method error.
|
65
|
+
#
|
66
|
+
# ## Tips and Tricks
|
67
|
+
#
|
68
|
+
# ### Controlling when slugs are generated
|
69
|
+
#
|
70
|
+
# As of FriendlyId 5.0, new slugs are generated only when the slug field is
|
71
|
+
# nil, but if you're using a column as your base method can change this
|
72
|
+
# behavior by overriding the `should_generate_new_friendly_id?` method that
|
73
|
+
# FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
|
74
|
+
# more like 4.0.
|
75
|
+
#
|
76
|
+
# config.use Module.new {
|
77
|
+
# def should_generate_new_friendly_id?
|
78
|
+
# slug.blank? || <your_column_name_here>_changed?
|
79
|
+
# end
|
80
|
+
# }
|
81
|
+
#
|
82
|
+
# FriendlyId uses Rails's `parameterize` method to generate slugs, but for
|
83
|
+
# languages that don't use the Roman alphabet, that's not usually sufficient.
|
84
|
+
# Here we use the Babosa library to transliterate Russian Cyrillic slugs to
|
85
|
+
# ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
|
86
|
+
#
|
87
|
+
# config.use Module.new {
|
88
|
+
# def normalize_friendly_id(text)
|
89
|
+
# text.to_slug.normalize! :transliterations => [:russian, :latin]
|
90
|
+
# end
|
91
|
+
# }
|
92
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
PaperTrail.config.track_associations = false
|
data/config/locales/en.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
en:
|
2
|
-
activerecord:
|
3
|
-
attributes:
|
4
|
-
member/profiles:
|
5
|
-
mfirstname: "Member First Name"
|
6
|
-
mlastname: "Member Last Name"
|
7
|
-
mtitle: "Member Title"
|
8
|
-
memail: "Member Email"
|
9
|
-
mphone: "Member Phone Number"
|
1
|
+
en:
|
2
|
+
activerecord:
|
3
|
+
attributes:
|
4
|
+
member/profiles:
|
5
|
+
mfirstname: "Member First Name"
|
6
|
+
mlastname: "Member Last Name"
|
7
|
+
mtitle: "Member Title"
|
8
|
+
memail: "Member Email"
|
9
|
+
mphone: "Member Phone Number"
|
data/config/routes.rb
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
Phcmembers::Engine.routes.draw do
|
2
|
-
|
3
|
-
# Dashboard (Engine Root)
|
4
|
-
get 'modules/dashboards/index'
|
5
|
-
|
6
|
-
# Application API
|
7
|
-
namespace :api do
|
8
|
-
# Routes for API
|
9
|
-
resources :catsapi, defaults: {format: 'json'} do
|
10
|
-
resources :listapi
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
# Application Client Backend
|
15
|
-
|
16
|
-
# Members Section
|
17
|
-
namespace :member do
|
18
|
-
# Members Main Index
|
19
|
-
root 'profiles#index'
|
20
|
-
|
21
|
-
# Member Routes
|
22
|
-
resources :profiles, class_name: 'Phcmembers::Member::Profile' do
|
23
|
-
resources :listings, class_name: 'Phcmembers::Member::Listing'
|
24
|
-
resources :addresses, class_name: 'Phcmembers::Member::Address'
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
# Directory Section
|
29
|
-
namespace :directory do
|
30
|
-
# Members Main Index
|
31
|
-
root 'categories#index'
|
32
|
-
resources :categories, class_name: 'Phcmembers::Directory::Category'
|
33
|
-
resources :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting'
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
1
|
+
Phcmembers::Engine.routes.draw do
|
2
|
+
|
3
|
+
# Dashboard (Engine Root)
|
4
|
+
get 'modules/dashboards/index'
|
5
|
+
|
6
|
+
# Application API
|
7
|
+
namespace :api do
|
8
|
+
# Routes for API
|
9
|
+
resources :catsapi, defaults: {format: 'json'} do
|
10
|
+
resources :listapi
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# Application Client Backend
|
15
|
+
|
16
|
+
# Members Section
|
17
|
+
namespace :member do
|
18
|
+
# Members Main Index
|
19
|
+
root 'profiles#index'
|
20
|
+
|
21
|
+
# Member Routes
|
22
|
+
resources :profiles, class_name: 'Phcmembers::Member::Profile' do
|
23
|
+
resources :listings, class_name: 'Phcmembers::Member::Listing'
|
24
|
+
resources :addresses, class_name: 'Phcmembers::Member::Address'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# Directory Section
|
29
|
+
namespace :directory do
|
30
|
+
# Members Main Index
|
31
|
+
root 'categories#index'
|
32
|
+
resources :categories, class_name: 'Phcmembers::Directory::Category'
|
33
|
+
resources :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting'
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -1,23 +1,23 @@
|
|
1
|
-
class CreatePhcmembersMemberProfiles < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcmembers_member_profiles do |t|
|
5
|
-
|
6
|
-
t.string :mfirstname
|
7
|
-
t.string :mlastname
|
8
|
-
t.string :mtitle
|
9
|
-
t.string :memail
|
10
|
-
t.string :mphone
|
11
|
-
t.string :mnotes
|
12
|
-
|
13
|
-
t.string :slug
|
14
|
-
|
15
|
-
t.string :user_id
|
16
|
-
t.string :user_name
|
17
|
-
|
18
|
-
t.timestamps
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
1
|
+
class CreatePhcmembersMemberProfiles < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcmembers_member_profiles do |t|
|
5
|
+
|
6
|
+
t.string :mfirstname
|
7
|
+
t.string :mlastname
|
8
|
+
t.string :mtitle
|
9
|
+
t.string :memail
|
10
|
+
t.string :mphone
|
11
|
+
t.string :mnotes
|
12
|
+
|
13
|
+
t.string :slug
|
14
|
+
|
15
|
+
t.string :user_id
|
16
|
+
t.string :user_name
|
17
|
+
|
18
|
+
t.timestamps
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -1,26 +1,26 @@
|
|
1
|
-
class CreatePhcmembersMemberAddresses < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcmembers_member_addresses do |t|
|
5
|
-
|
6
|
-
t.string :mcaddressl1
|
7
|
-
t.string :mcaddressl2
|
8
|
-
t.string :mccity
|
9
|
-
t.string :mcprovince
|
10
|
-
t.string :mccountry
|
11
|
-
t.string :mcpostalcode
|
12
|
-
t.string :mctype
|
13
|
-
|
14
|
-
t.references :profile
|
15
|
-
|
16
|
-
t.string :slug
|
17
|
-
|
18
|
-
t.string :user_id
|
19
|
-
t.string :user_name
|
20
|
-
|
21
|
-
t.timestamps
|
22
|
-
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|
1
|
+
class CreatePhcmembersMemberAddresses < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcmembers_member_addresses do |t|
|
5
|
+
|
6
|
+
t.string :mcaddressl1
|
7
|
+
t.string :mcaddressl2
|
8
|
+
t.string :mccity
|
9
|
+
t.string :mcprovince
|
10
|
+
t.string :mccountry
|
11
|
+
t.string :mcpostalcode
|
12
|
+
t.string :mctype
|
13
|
+
|
14
|
+
t.references :profile
|
15
|
+
|
16
|
+
t.string :slug
|
17
|
+
|
18
|
+
t.string :user_id
|
19
|
+
t.string :user_name
|
20
|
+
|
21
|
+
t.timestamps
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcmembersDirectoryCategories < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcmembers_directory_categories do |t|
|
5
|
-
|
6
|
-
t.string :catname
|
7
|
-
|
8
|
-
t.string :slug
|
9
|
-
|
10
|
-
t.string :user_id
|
11
|
-
t.string :user_name
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcmembersDirectoryCategories < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcmembers_directory_categories do |t|
|
5
|
+
|
6
|
+
t.string :catname
|
7
|
+
|
8
|
+
t.string :slug
|
9
|
+
|
10
|
+
t.string :user_id
|
11
|
+
t.string :user_name
|
12
|
+
|
13
|
+
t.timestamps
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,30 +1,30 @@
|
|
1
|
-
class CreatePhcmembersMemberListings < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcmembers_member_listings do |t|
|
5
|
-
|
6
|
-
t.string :mbcompanyname
|
7
|
-
t.string :mbcontactname
|
8
|
-
t.string :mbaddressl1
|
9
|
-
t.string :mbaddressl2
|
10
|
-
t.string :mbcity
|
11
|
-
t.string :mbprovince
|
12
|
-
t.string :mbcountry
|
13
|
-
t.string :mbpostalcode
|
14
|
-
t.string :mbphone
|
15
|
-
t.string :mbcontactemail
|
16
|
-
t.string :mbwebsite
|
17
|
-
|
18
|
-
t.references :profile
|
19
|
-
|
20
|
-
t.string :slug
|
21
|
-
|
22
|
-
t.string :user_id
|
23
|
-
t.string :user_name
|
24
|
-
|
25
|
-
t.timestamps
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|
1
|
+
class CreatePhcmembersMemberListings < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcmembers_member_listings do |t|
|
5
|
+
|
6
|
+
t.string :mbcompanyname
|
7
|
+
t.string :mbcontactname
|
8
|
+
t.string :mbaddressl1
|
9
|
+
t.string :mbaddressl2
|
10
|
+
t.string :mbcity
|
11
|
+
t.string :mbprovince
|
12
|
+
t.string :mbcountry
|
13
|
+
t.string :mbpostalcode
|
14
|
+
t.string :mbphone
|
15
|
+
t.string :mbcontactemail
|
16
|
+
t.string :mbwebsite
|
17
|
+
|
18
|
+
t.references :profile
|
19
|
+
|
20
|
+
t.string :slug
|
21
|
+
|
22
|
+
t.string :user_id
|
23
|
+
t.string :user_name
|
24
|
+
|
25
|
+
t.timestamps
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|