initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
require_relative '../../versions'
|
||||
|
||||
Sequel.migration do
|
||||
change do
|
||||
alter_table(:pokemon) do
|
||||
FO::Versions::VERSIONS_BY_GENERATION
|
||||
.values
|
||||
.map { |g| g[:version_groups] }
|
||||
.reduce(&:+)
|
||||
.each { |version|
|
||||
add_column ("version_#{version}_dex").to_sym, :integer
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user