Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing db/schema.rb.

  • Loading branch information...
commit 3da1207993adc65bb8c785ab25ca6f65f2186dd3 1 parent 9420ba8
@rubiety authored
Showing with 131 additions and 2 deletions.
  1. +0 −2  .gitignore
  2. +48 −0 Gemfile.lock
  3. +83 −0 db/schema.rb
View
2  .gitignore
@@ -1,3 +1 @@
log/*.log
-db/schema.rb
-db/schema.sql
View
48 Gemfile.lock
@@ -0,0 +1,48 @@
+PATH
+ remote: .
+ specs:
+ jazz_model (0.1.0)
+ activerecord (>= 3.0.0)
+ activesupport (>= 3.0.0)
+ acts_as_list (>= 0.1.2)
+ acts_as_tree (>= 0.1.1)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activemodel (3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ i18n (~> 0.4)
+ activerecord (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ arel (~> 2.0.2)
+ tzinfo (~> 0.3.23)
+ activesupport (3.0.3)
+ acts_as_list (0.1.2)
+ acts_as_tree (0.1.1)
+ arel (2.0.7)
+ builder (2.1.2)
+ diff-lcs (1.1.2)
+ i18n (0.5.0)
+ rspec (2.4.0)
+ rspec-core (~> 2.4.0)
+ rspec-expectations (~> 2.4.0)
+ rspec-mocks (~> 2.4.0)
+ rspec-core (2.4.0)
+ rspec-expectations (2.4.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.4.0)
+ tzinfo (0.3.24)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord (>= 3.0.0)
+ activesupport (>= 3.0.0)
+ acts_as_list (>= 0.1.2)
+ acts_as_tree (>= 0.1.1)
+ jazz_model!
+ rspec (~> 2.0)
View
83 db/schema.rb
@@ -0,0 +1,83 @@
+JazzModel::Base.connection.tap do |c|
+ c.create_table :keys do |t|
+ t.string :name
+ t.string :long_name
+ t.boolean :primary, :default => true
+ t.integer :index
+ t.integer :letter_index
+ t.integer :cycle_index
+ end
+
+ c.create_table :chord_qualities do |t|
+ t.string :name
+ t.string :code
+ end
+
+ c.create_table :chords do |t|
+ t.belongs_to :chord_quality
+ t.integer :parent_id
+ t.string :name
+ t.text :synonyms
+ t.text :information
+ end
+
+ c.create_table :chord_symbols do |t|
+ t.belongs_to :chord
+ t.string :name
+ t.boolean :case_sensitive, :default => false
+ t.integer :strength
+ t.boolean :primary, :default => false
+ end
+
+ c.create_table :chord_tones do |t|
+ t.belongs_to :chord
+ t.integer :position
+ t.integer :tone
+ t.integer :letter_index
+ t.integer :strength
+ t.boolean :omitable, :default => false
+ t.text :information
+ end
+
+ c.create_table :scales do |t|
+ t.string :name
+ t.string :information
+ t.integer :symmetry_index
+ end
+
+ c.create_table :scale_tones do |t|
+ t.belongs_to :scale
+ t.integer :position
+ t.integer :tone
+ t.integer :letter_index
+ end
+
+ c.create_table :modes do |t|
+ t.belongs_to :scale
+ t.integer :mode
+ t.string :name
+ t.text :synonyms
+ t.integer :dissonance
+ end
+
+ c.create_table :chord_scales do |t|
+ t.belongs_to :chord
+ t.belongs_to :mode
+ t.integer :strength
+ t.text :information
+ end
+
+ c.create_table :voicings do |t|
+ t.belongs_to :chord
+ t.string :name
+ t.text :information
+ end
+
+ c.create_table :voicing_tones do |t|
+ t.belongs_to :voicings
+ t.integer :position
+ t.integer :tone
+ t.integer :tone_reference_offset, :default => 0
+ t.text :information
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.