Sha256: 3e2afc010941d06d0dd94feadce3f4fed664309cd5de2b1f224db5c196b8e32f
Contents?: true
Size: 831 Bytes
Versions: 25
Compression:
Stored size: 831 Bytes
Contents
require 'rubygems' require 'active_record' class DbTypeMigration < ActiveRecord::Migration def self.up create_table "db_types", :force => true do |t| t.column :sample_timestamp, :timestamp t.column :sample_datetime, :datetime t.column :sample_date, :date t.column :sample_time, :time t.column :sample_decimal, :decimal, :precision => 15, :scale => 0 t.column :sample_small_decimal, :decimal, :precision => 3, :scale => 2 t.column :sample_float, :float t.column :sample_binary, :binary t.column :sample_boolean, :boolean t.column :sample_string, :string, :default => '' t.column :sample_integer, :integer, :limit => 5 t.column :sample_text, :text end end def self.down drop_table "db_types" end end class DbType < ActiveRecord::Base end
Version data entries
25 entries across 25 versions & 5 rubygems