templatr 0.0.1 → 0.0.2

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: 32041fe62ad050adc8cf4e9f0597cb11860a97f3
4
- data.tar.gz: c563d911b5beec9fb6ac262a327cc22ea5e1c2de
3
+ metadata.gz: ef24f3ec694f4c456c579206189e981f72e707f3
4
+ data.tar.gz: ef718355ef3bd3cfa7aa129dd605a266d4ce4655
5
5
  SHA512:
6
- metadata.gz: becc08187da3c2adff63e823e26667659506928e9305ce0a1b50185183624e9337a72ba6be4184bfacbdd0810cc6c8b376a4277c37bcb34de509a9cf1f0f631d
7
- data.tar.gz: f6d84d360119094beeba9ded075ce15ba5128403df732dfe69d6f88bf151bfa33aca8cd5878e632a3bb2552794315f7e7f564e4bc1e45ae16d259d0cdaa0eb85
6
+ metadata.gz: f32e45e9f8545b4785d8543d10bb868531acaf307e6d8f4b52428d7e5c2f672ea8bccd8d97c25e509265738a8a871543aa5efa71b4766a880b090bfa06bb2ca1
7
+ data.tar.gz: b77004c8b13fb06c1ed49268494adc56737ed9aca237915763c70a27264900815aabebdb86be7d2602cbcf1874c20e962723e402228692f73a7f76cf3c6b5159
@@ -0,0 +1,54 @@
1
+ class CreateTemplatrTables < ActiveRecord::Migration
2
+ def change
3
+ create_table :templatr_field_groups, :force => true do |t|
4
+ t.string :name
5
+ end
6
+
7
+ create_table :templatr_field_values, :force => true do |t|
8
+ t.integer :field_id
9
+ t.string :value
10
+ t.text :description
11
+ end
12
+
13
+ create_table :templatr_fields, :force => true do |t|
14
+ t.integer :template_id, :index => true
15
+ t.string :name
16
+ t.string :field_type
17
+ t.integer :order
18
+ t.integer :field_group_id
19
+ t.datetime :created_at
20
+ t.datetime :updated_at
21
+ t.boolean :search_suggestions, :default => false, :null => false
22
+ t.boolean :include_in_search_form, :default => false, :null => false
23
+ t.boolean :include_in_item_list, :default => false, :null => false
24
+ t.boolean :show_tag_cloud, :default => false, :null => false
25
+ t.string :type
26
+ t.boolean :disambiguate, :default => false, :null => false
27
+ end
28
+
29
+ create_table :templatr_tag_field_values, :force => true do |t|
30
+ t.integer :tag_id
31
+ t.integer :field_value_id
32
+ end
33
+
34
+ create_table :templatr_tags, :force => true do |t|
35
+ t.integer :taggable_id, :index => true
36
+ t.string :name
37
+ t.integer :field_id
38
+ t.integer :field_value_id
39
+ t.integer :integer_value
40
+ t.float :float_value
41
+ t.text :text_value
42
+ t.string :string_value
43
+ t.date :date_value
44
+ t.integer :integer_value_uncertainty
45
+ t.boolean :boolean_value
46
+ t.string :type
47
+ end
48
+
49
+ create_table :templatr_templates, :force => true do |t|
50
+ t.string :name
51
+ t.string :type
52
+ end
53
+ end
54
+ end
@@ -1,3 +1,3 @@
1
1
  module Templatr
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: templatr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-26 00:00:00.000000000 Z
12
+ date: 2014-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -61,6 +61,7 @@ files:
61
61
  - app/models/templatr/template.rb
62
62
  - app/views/layouts/templatr/application.html.erb
63
63
  - config/routes.rb
64
+ - db/migrate/20140128215516_create_templatr_tables.rb
64
65
  - lib/tasks/templatr_tasks.rake
65
66
  - lib/templatr.rb
66
67
  - lib/templatr/acts_as_templatable.rb