Sha256: 2a7c0469203c7d191c99db8e04848f087a9c79ea2a2fde475dd82ed52eba7d1f
Contents?: true
Size: 1.07 KB
Versions: 6
Compression:
Stored size: 1.07 KB
Contents
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_default_decimal, :decimal 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_integer_with_limit_2, :integer, :limit => 2 t.column :sample_integer_with_limit_8, :integer, :limit => 8 t.column :sample_integer_no_limit, :integer t.column :sample_integer_negative_default, :integer, :default => -1 t.column :sample_text, :text end end def self.down drop_table "db_types" end end class DbType < ActiveRecord::Base end
Version data entries
6 entries across 6 versions & 3 rubygems