Sha256: e5fb1b6d42606b1957af31a40485d460d3b66d88a424f17b44cbe7e952d9e91e

Contents?: true

Size: 343 Bytes

Versions: 11

Compression:

Stored size: 343 Bytes

Contents

database = Gemika::Database.new
database.connect

database.rewrite_schema! do

  create_table :artists

  create_table :songs do |t|
    t.integer :artist_id
    t.string :genre
    t.integer :year
    t.integer :duration
    t.string :multi_genres, :array => true
  end

  create_table :vinyl_recordings do |t|
    t.integer :year
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
assignable_values-1.0.1 spec/support/database.rb
assignable_values-1.0.0 spec/support/database.rb
assignable_values-0.18.1 spec/support/database.rb
assignable_values-0.18.0 spec/support/database.rb
assignable_values-0.17.0 spec/support/database.rb
assignable_values-0.16.6 spec/support/database.rb
assignable_values-0.16.5 spec/support/database.rb
assignable_values-0.16.4 spec/support/database.rb
assignable_values-0.16.3 spec/support/database.rb
assignable_values-0.16.2 spec/support/database.rb
assignable_values-0.16.1 spec/support/database.rb