brightcontent-attachments 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72290c805af7b6784724baf751b978774c460007
4
- data.tar.gz: 309dc5b58eb60341083679af56460bd6fce6522d
3
+ metadata.gz: e02ff311fbcd630279358f5e1bcd2cc821ea40fe
4
+ data.tar.gz: 85836a51516b0e6a5fb325a819cde0a24f96af66
5
5
  SHA512:
6
- metadata.gz: aabb6a94b2f65138d2df6ef0e483e6c575207059cca5da9790f26f7bfec0f8833aaa97f56ac9845a3e82a09f3ac341157b9c5346cf8ba5048aa0650c254b057d
7
- data.tar.gz: 5d16886335303d57a156defd7c1a1e5579e77dcc06ab43fa791b184ac9bba0a78aca82040041a55bcfe74c4c018703b91eabca704c968fea60e95006a6780d14
6
+ metadata.gz: bf665e4953af069579e4643c20be1cfdce12a9a932c203c7c26829e8d49a5c73068e692f86d01a59a40cc807c79e1f007a2cea20bd40940831b6e985eedb552c
7
+ data.tar.gz: d7fb278ef27aa5b2289e6de4c526c545364764de12267423b04875397ed94555d9c2fcbb3ad356ee6d07b8314e122e369d81f8e9cc55bc923ce049cdb95061d6
@@ -1,5 +1,5 @@
1
1
  class CreateAttachments < ActiveRecord::Migration
2
- def self.up
2
+ def up
3
3
  create_table :brightcontent_attachments do |t|
4
4
  t.integer :attachable_id
5
5
  t.string :attachable_type
@@ -7,13 +7,15 @@ class CreateAttachments < ActiveRecord::Migration
7
7
  t.string :asset_content_type
8
8
  t.integer :asset_file_size
9
9
  t.datetime :asset_updated_at
10
+ t.integer :position
10
11
  t.timestamps
11
12
  end
13
+
12
14
  add_index :brightcontent_attachments, :attachable_id
13
15
  add_index :brightcontent_attachments, :attachable_type
14
16
  end
15
17
 
16
- def self.down
18
+ def down
17
19
  drop_table :brightcontent_attachments
18
20
  end
19
21
  end
@@ -50,6 +50,11 @@ module Dummy
50
50
 
51
51
  # Version of your assets, change this if you want to expire all your assets
52
52
  config.assets.version = '1.0'
53
+
54
+ # Share migrations of Brightcontent core
55
+ Brightcontent::Engine.paths["db/migrate"].expanded.each do |expanded_path|
56
+ config.paths["db/migrate"] << expanded_path
57
+ end
53
58
  end
54
59
  end
55
60
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-attachments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brightcontent-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.4
19
+ version: 2.1.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.4
26
+ version: 2.1.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: paperclip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -160,7 +160,6 @@ files:
160
160
  - config/locales/brightcontent_attachements.nl.yml
161
161
  - config/routes.rb
162
162
  - db/migrate/20121222172513_create_attachments.rb
163
- - db/migrate/20140203140819_add_position_to_attachments.rb
164
163
  - lib/brightcontent-attachments.rb
165
164
  - lib/brightcontent/attachments.rb
166
165
  - lib/brightcontent/attachments/attachable.rb
@@ -198,7 +197,6 @@ files:
198
197
  - spec/dummy/config/initializers/wrap_parameters.rb
199
198
  - spec/dummy/config/locales/en.yml
200
199
  - spec/dummy/config/routes.rb
201
- - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
202
200
  - spec/dummy/db/migrate/20121206225720_create_blogs.rb
203
201
  - spec/dummy/lib/assets/.gitkeep
204
202
  - spec/dummy/public/404.html
@@ -280,7 +278,6 @@ test_files:
280
278
  - spec/dummy/config/initializers/wrap_parameters.rb
281
279
  - spec/dummy/config/locales/en.yml
282
280
  - spec/dummy/config/routes.rb
283
- - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
284
281
  - spec/dummy/db/migrate/20121206225720_create_blogs.rb
285
282
  - spec/dummy/lib/assets/.gitkeep
286
283
  - spec/dummy/public/404.html
@@ -1,5 +0,0 @@
1
- class AddPositionToAttachments < ActiveRecord::Migration
2
- def change
3
- add_column :brightcontent_attachments, :position, :integer
4
- end
5
- end
@@ -1,12 +0,0 @@
1
- class CreateBrightcontentAdminUsers < ActiveRecord::Migration
2
- def change
3
- create_table :brightcontent_admin_users do |t|
4
- t.string :email
5
- t.string :password_digest
6
-
7
- t.timestamps
8
- end
9
-
10
- Brightcontent::AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')
11
- end
12
- end